Fix show button consistency #980

This commit is contained in:
J-Jamet
2021-05-05 11:01:53 +02:00
parent 1b2ead054a
commit edc5985a7e
4 changed files with 6 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
KeePassDX(3.0.0) KeePassDX(3.0.0)
* * Fix show button consistency #980
KeePassDX(2.9.20) KeePassDX(2.9.20)
* Fix search with non-latin chars #971 * Fix search with non-latin chars #971

View File

@@ -46,10 +46,10 @@ class EntryField @JvmOverloads constructor(context: Context,
var hiddenProtectedValue: Boolean var hiddenProtectedValue: Boolean
get() { get() {
return showButtonView.isSelected return !showButtonView.isSelected
} }
set(value) { set(value) {
showButtonView.isSelected = !value showButtonView.isSelected = value
changeProtectedValueParameters() changeProtectedValueParameters()
} }
@@ -101,7 +101,7 @@ class EntryField @JvmOverloads constructor(context: Context,
} else { } else {
setTextIsSelectable(true) setTextIsSelectable(true)
} }
applyHiddenStyle(isProtected && !showButtonView.isSelected) applyHiddenStyle(isProtected && showButtonView.isSelected)
if (!isProtected) linkify() if (!isProtected) linkify()
} }
} }

View File

@@ -1 +1 @@
* * Fix show button consistency #980

View File

@@ -1 +1 @@
* * Correction de la consistance du bouton de visibilité #980