From 4e8f5e0f691829738c5c4fbf50617a62ccbb97a8 Mon Sep 17 00:00:00 2001 From: Fabian Henneke Date: Sun, 5 Apr 2020 17:04:40 +0200 Subject: Fix: Make generated entry path editable without suggested username (#687) The path of a new entry created via Autofill should always be editable, even when no username is prefilled (e.g., when generating a new password or saving a form with no detected username field). --- app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 2fb85118..013a98b0 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt @@ -163,7 +163,7 @@ class PgpActivity : AppCompatActivity(), OpenPgpServiceConnection.OnBound { setText(getRelativePath(fullPath, repoPath)) // If the activity has been provided with suggested info, we allow the user to // edit the path, otherwise we style the EditText like a TextView. - if (suggestedName != null) { + if (suggestedName != null || suggestedPass != null) { isEnabled = true } else { setBackgroundColor(getColor(android.R.color.transparent)) -- cgit v1.2.3