summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorMohamed <mohamed@zenadi.com>2017-11-19 12:27:31 +0100
committerMohamed <mohamed@zenadi.com>2017-11-19 12:27:31 +0100
commitc1db901feab2b8130f53b9cd6cc57e37a6c54387 (patch)
tree1d9096c9c5e14ae2584e891822988b935175ee58 /app/src/main/java
parentb2839eb0a166cdff87e1a1a2433f036bb71be203 (diff)
hide password label if password is empty
fix #295
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt
index 3b47bf66..d0174a9a 100644
--- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt
+++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt
@@ -199,6 +199,15 @@ class PgpActivity : AppCompatActivity(), OpenPgpServiceConnection.OnBound {
return@executeApiAsync
}
+ if (entry.password.isEmpty()) {
+ crypto_password_show.visibility = View.GONE
+ crypto_password_show_label.visibility = View.GONE
+ } else {
+ crypto_password_show.visibility = View.VISIBLE
+ crypto_password_show_label.visibility = View.VISIBLE
+ crypto_password_show.typeface = monoTypeface
+ crypto_password_show.text = entry.password
+ }
crypto_password_show.typeface = monoTypeface
crypto_password_show.text = entry.password