diff options
| author | Harsh Shandilya <msfjarvis@gmail.com> | 2020-07-07 19:18:24 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-07 19:18:24 +0530 |
| commit | 5d170249cdd0050349f40d3a5852a8ba996663bc (patch) | |
| tree | b5c4b1654b8d44c7f0893b84cbc7072d0e35ad18 /app/src/main/java/com/zeapo/pwdstore/crypto | |
| parent | 035d3feaa4e81eadef69bb7799d3cedf7ff17d33 (diff) | |
| download | HardenedPass-5d170249cdd0050349f40d3a5852a8ba996663bc.tar.gz HardenedPass-5d170249cdd0050349f40d3a5852a8ba996663bc.zip | |
Major UI overhaul and the introduction of a new icon (#920)
Co-authored-by: Fabian Henneke <fabian@henneke.me>
Diffstat (limited to 'app/src/main/java/com/zeapo/pwdstore/crypto')
| -rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt b/app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt index 13f9add3..b98f20df 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt @@ -104,7 +104,11 @@ class PasswordCreationActivity : BasePgpActivity(), OpenPgpServiceConnection.OnB oldCategory = path } } - suggestedName?.let { filename.setText(it) } + if (suggestedName != null) { + filename.setText(suggestedName) + } else { + filename.requestFocus() + } // Allow the user to quickly switch between storing the username as the filename or // in the encrypted extras. This only makes sense if the directory structure is // FileBased. @@ -164,7 +168,7 @@ class PasswordCreationActivity : BasePgpActivity(), OpenPgpServiceConnection.OnB override fun onOptionsItemSelected(item: MenuItem): Boolean { when (item.itemId) { - android.R.id.home, R.id.cancel_password_add -> { + android.R.id.home -> { setResult(RESULT_CANCELED) finish() } |
