mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Dialog input much better
This commit is contained in:
@@ -52,9 +52,14 @@ abstract class AutofillBlocklistPreferenceDialogFragmentCompat
|
||||
setOnInputTextEditorActionListener(TextView.OnEditorActionListener { _, actionId, _ ->
|
||||
when (actionId) {
|
||||
EditorInfo.IME_ACTION_DONE -> {
|
||||
addItemFromInputText()
|
||||
hideKeyboard()
|
||||
false
|
||||
if (inputText.isEmpty()) {
|
||||
onDialogClosed(true)
|
||||
dialog?.dismiss()
|
||||
true
|
||||
} else {
|
||||
addItemFromInputText()
|
||||
false
|
||||
}
|
||||
}
|
||||
else -> false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user