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).
This commit is contained in:
Fabian Henneke
2020-04-05 17:04:40 +02:00
committed by GitHub
parent 7dc6ee7992
commit 4e8f5e0f69

View File

@@ -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))