aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/com/zeapo
diff options
context:
space:
mode:
authorBalasankar C <balasankarc@users.noreply.github.com>2018-01-16 20:31:39 +0000
committerMohamed Zenadi <zeapo@users.noreply.github.com>2018-01-16 21:31:39 +0100
commit7eb866b94344c39ecfba309ee6f9efe58e0a9238 (patch)
treed88d021f074d1472212e785753c89b7939b95cef /app/src/main/java/com/zeapo
parent0480e7cb028102c413449bbceae03bb7ba159350 (diff)
Fix totp elements layout (#367)
* Fix totp elements layout * Add missing rule * Make username copy button invisible by default * Fix totp copy button string * Don't show username fields if not set
Diffstat (limited to 'app/src/main/java/com/zeapo')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt5
1 files changed, 5 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 1a8a5051..168f92e1 100644
--- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt
+++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt
@@ -246,6 +246,11 @@ class PgpActivity : AppCompatActivity(), OpenPgpServiceConnection.OnBound {
crypto_username_show.typeface = monoTypeface
crypto_username_show.text = entry.username
}
+ else {
+ crypto_username_show.visibility = View.GONE
+ crypto_username_show_label.visibility = View.GONE
+ crypto_copy_username.visibility = View.GONE
+ }
}
if (entry.hasTotp()) {