From de4de6516b10dfc246cb3598d32fa8b14f56a7c9 Mon Sep 17 00:00:00 2001 From: Mohamed Date: Sun, 19 Nov 2017 12:41:36 +0100 Subject: fix totp not showing if set in password without extra content --- app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/src/main/java') 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 d0174a9a..19b71b72 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt @@ -235,14 +235,14 @@ class PgpActivity : AppCompatActivity(), OpenPgpServiceConnection.OnBound { crypto_copy_username.setOnClickListener { copyUsernameToClipBoard(entry.username) } 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()) { + crypto_extra_show_layout.visibility = View.VISIBLE + crypto_extra_show.typeface = monoTypeface + crypto_extra_show.text = entry.extraContent + crypto_totp_show.visibility = View.VISIBLE crypto_totp_show_label.visibility = View.VISIBLE crypto_copy_totp.visibility = View.VISIBLE -- cgit v1.2.3