summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMohamed Zenadi <mohamed@zenadi.com>2016-12-31 12:33:23 +0100
committerMohamed Zenadi <mohamed@zenadi.com>2016-12-31 12:33:23 +0100
commitddd81d8f7e91303529d0e64d1ef9710de9044ed0 (patch)
tree16519323f52f08769967210ce85ece05eec9b93d /app
parent1fb66b33564e86111c97fea6788c8de4444d2c99 (diff)
set the timer to clear the clipboard on copy
fix #244
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java5
1 files changed, 3 insertions, 2 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 6382f914..095aab9a 100644
--- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java
+++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java
@@ -254,8 +254,11 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne
return;
}
+ setTimer();
+
ClipData clip = ClipData.newPlainText("pgp_handler_result_pm", decodedPassword);
clipboard.setPrimaryClip(clip);
+
try {
showToast(this.getResources().getString(R.string.clipboard_beginning_toast_text)
+ " " + Integer.parseInt(settings.getString("general_show_time", "45")) + " "
@@ -521,8 +524,6 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne
.setText(extraContent);
}
- setTimer();
-
if (settings.getBoolean("copy_on_decrypt", true)) {
copyToClipBoard();
}