summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Henneke <FabianHenneke@users.noreply.github.com>2020-04-05 17:04:40 +0200
committerGitHub <noreply@github.com>2020-04-05 20:34:40 +0530
commit4e8f5e0f691829738c5c4fbf50617a62ccbb97a8 (patch)
tree25a1bf4dc3e7a29105e67df68b5d0f2f77377113
parent7dc6ee799200deee9d5c5faed74dff4d564dad43 (diff)
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).
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt2
1 files changed, 1 insertions, 1 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 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))