Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions changelog/unreleased/4967
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Hide keyboard and clear error when brute-force countdown ends

The number keyboard has been hidden during the brute-force protection countdown so users cannot interact with it. The wrong-passcode error message has been cleared once the countdown ends, leaving a clean screen for the next attempt.

https://github.com/owncloud/android/issues/4874
https://github.com/owncloud/android/pull/4967
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ class PassCodeActivity : ToolbarActivity(), NumberKeyboardListener, EnableBiomet
})
passCodeViewModel.getFinishedTimeToUnlockLiveData.observe(this, Event.EventObserver {
binding.lockTime.visibility = View.INVISIBLE
binding.numberKeyboard.visibility = View.VISIBLE
binding.passcodeError.visibility = View.INVISIBLE
for (editText: EditText? in passCodeEditTexts) {
editText?.isEnabled = true
}
Expand Down Expand Up @@ -347,6 +349,7 @@ class PassCodeActivity : ToolbarActivity(), NumberKeyboardListener, EnableBiomet
val timeToUnlock = passCodeViewModel.getTimeToUnlockLeft()
if (timeToUnlock > 0) {
binding.lockTime.visibility = View.VISIBLE
binding.numberKeyboard.visibility = View.INVISIBLE
for (editText: EditText? in passCodeEditTexts) {
editText?.isEnabled = false
}
Expand Down