summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorMatthew Wong <wongma@protonmail.ch>2015-07-21 16:10:55 -0400
committerMatthew Wong <wongma@protonmail.ch>2015-07-21 16:15:36 -0400
commitd95286660ad5e626c75f4bc9f70e51277be67273 (patch)
tree3cec2cac9885e7304a043cc73f719e272355ee7e /app/src/main/java
parent9ff126a3fbbf50679870e709d4118a86f3ac14c2 (diff)
Add 'clear clipboard 20 times' preference
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java
index ca5ab33d..b744c4a0 100644
--- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java
+++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java
@@ -256,6 +256,12 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne
protected void onPostExecute(Boolean b) {
ClipData clip = ClipData.newPlainText("pgp_handler_result_pm", "MyPasswordIsDaBest!");
clipboard.setPrimaryClip(clip);
+ if (settings.getBoolean("clear_clipboard_20x", false)) {
+ for (int i = 0; i < 19; i++) {
+ clip = ClipData.newPlainText(String.valueOf(i), String.valueOf(i));
+ clipboard.setPrimaryClip(clip);
+ }
+ }
if (showPassword) {
//clear password
((TextView) findViewById(R.id.crypto_password_show)).setText("");