summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authoragrahn <agrahn@users.noreply.github.com>2024-07-22 18:32:55 +0200
committerGitHub <noreply@github.com>2024-07-22 16:32:55 +0000
commit080387ce758987d52a66141241bcd0363a5bbfbc (patch)
treebacf35a7ed9e39f1b2dd8db576c78cbeeea1ed63 /app/src/main/res
parent457ecade9cc7e6ec2d6607076bc7f622758b0abf (diff)
add checkbox in passphrase dialog to clear cache (#3127)
* add checkbox in passphrase dialog to clear cache * instantiating PasswordDialog via newInstance, passing args as Bundle * refactor: put checkbox directly in the layout --------- Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/dialog_password_entry.xml5
-rw-r--r--app/src/main/res/values/strings.xml1
2 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/res/layout/dialog_password_entry.xml b/app/src/main/res/layout/dialog_password_entry.xml
index 0072d491..e2ad5a2f 100644
--- a/app/src/main/res/layout/dialog_password_entry.xml
+++ b/app/src/main/res/layout/dialog_password_entry.xml
@@ -27,4 +27,9 @@
<requestFocus />
</com.google.android.material.textfield.TextInputLayout>
+ <com.google.android.material.checkbox.MaterialCheckBox
+ android:id="@+id/auto_clear_cache"
+ android:layout_width="match_parent"
+ android:text="@string/clear_cached_password_on_screen_off"
+ android:layout_height="wrap_content" />
</LinearLayout>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 07a9661b..404339ce 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -381,4 +381,5 @@
<string name="biometric_prompt_title_gpg_passphrase_cache">Unlock passphrase cache</string>
<string name="aead_detect_title">AEAD encryption detected</string>
<string name="aead_detect_message">%1$s, see https://passwordstore.app/fix-aead for more information</string>
+ <string name="clear_cached_password_on_screen_off">Clear cached password on screen-off</string>
</resources>