mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-09-01 14:55:19 +00:00
Fix: Make path editable when generating a password (#688)
This commit is contained in:
@@ -161,9 +161,10 @@ class PgpActivity : AppCompatActivity(), OpenPgpServiceConnection.OnBound {
|
|||||||
title = getString(R.string.new_password_title)
|
title = getString(R.string.new_password_title)
|
||||||
crypto_password_category.apply {
|
crypto_password_category.apply {
|
||||||
setText(getRelativePath(fullPath, repoPath))
|
setText(getRelativePath(fullPath, repoPath))
|
||||||
// If the activity has been provided with suggested info, we allow the user to
|
// If the activity has been provided with suggested info or is meant to generate
|
||||||
// edit the path, otherwise we style the EditText like a TextView.
|
// a password, we allow the user to edit the path, otherwise we style the
|
||||||
if (suggestedName != null || suggestedPass != null) {
|
// EditText like a TextView.
|
||||||
|
if (suggestedName != null || suggestedPass != null || shouldGeneratePassword) {
|
||||||
isEnabled = true
|
isEnabled = true
|
||||||
} else {
|
} else {
|
||||||
setBackgroundColor(getColor(android.R.color.transparent))
|
setBackgroundColor(getColor(android.R.color.transparent))
|
||||||
|
Reference in New Issue
Block a user