fix: searchable selection

This commit is contained in:
J-Jamet
2022-06-01 14:15:41 +02:00
parent 6e1c8e5bec
commit 13905db732
4 changed files with 12 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ KeePassDX(3.4.5)
* New clipboard manager #1343 * New clipboard manager #1343
* Keep screen on by default when viewing an entry * Keep screen on by default when viewing an entry
* Change the order of the search filters * Change the order of the search filters
* Fix searchable selection
KeePassDX(3.4.4) KeePassDX(3.4.4)
* Fix crash in New Android 13 #1321 * Fix crash in New Android 13 #1321

View File

@@ -52,9 +52,16 @@ class InheritedCompletionView @JvmOverloads constructor(
} }
init { init {
setAdapter(adapter) isFocusable = false
isFocusableInTouchMode = false
//hardwareKeyCompletion.isEnabled = false
isCursorVisible = false
setTextIsSelectable(false)
inputType = InputType.TYPE_NULL inputType = InputType.TYPE_NULL
adapter.filter.filter(null) setAdapter(adapter)
setOnClickListener {
showDropDown()
}
} }
fun getValue(): Boolean? { fun getValue(): Boolean? {
@@ -63,7 +70,6 @@ class InheritedCompletionView @JvmOverloads constructor(
fun setValue(inherited: Boolean?) { fun setValue(inherited: Boolean?) {
setText(context.getString(InheritedStatus.getStatusFromValue(inherited).stringId)) setText(context.getString(InheritedStatus.getStatusFromValue(inherited).stringId))
adapter.filter.filter(null)
} }
private enum class InheritedStatus(val stringId: Int, val value: Boolean?) { private enum class InheritedStatus(val stringId: Int, val value: Boolean?) {

View File

@@ -3,3 +3,4 @@
* New clipboard manager #1343 * New clipboard manager #1343
* Keep screen on by default when viewing an entry * Keep screen on by default when viewing an entry
* Change the order of the search filters * Change the order of the search filters
* Fix searchable selection

View File

@@ -3,3 +3,4 @@
* Nouveau gestionnaire de presse-papier #1343 * Nouveau gestionnaire de presse-papier #1343
* Garde l'écran allumé par défaut lors d'une visualisation d'entrée * Garde l'écran allumé par défaut lors d'une visualisation d'entrée
* Changement d'ordre des filtres de recherche * Changement d'ordre des filtres de recherche
* Correction de la selection cherchable