mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-05 16:22:31 -08:00
fix: Reset parameters after the password focus #2289
This commit is contained in:
4 files changed
+9
-6
No files matched your search
@@ -196,10 +196,6 @@ class MainCredentialView @JvmOverloads constructor(context: Context,
|
||||
}
|
||||
}
|
||||
|
||||
fun changeConditionToStoreCredential(credentialStorage: CredentialStorage) {
|
||||
this.mCredentialStorage = credentialStorage
|
||||
}
|
||||
|
||||
fun conditionToStoreCredential(): Boolean {
|
||||
// TODO HARDWARE_KEY
|
||||
return when (mCredentialStorage) {
|
||||
@@ -230,6 +226,10 @@ class MainCredentialView @JvmOverloads constructor(context: Context,
|
||||
|
||||
fun requestPasswordFocus() {
|
||||
passwordTextView.requestFocusFromTouch()
|
||||
onConditionToStoreCredentialChanged?.invoke(
|
||||
mCredentialStorage,
|
||||
conditionToStoreCredential()
|
||||
)
|
||||
}
|
||||
|
||||
// Auto select the password field and open keyboard
|
||||
|
||||
Reference in new issue
Block a user