From 8d5473a54362b7e9d6ecb47968ee065dd08be3c5 Mon Sep 17 00:00:00 2001 From: Mohamed Zenadi Date: Sat, 31 Dec 2016 12:35:45 +0100 Subject: do not put anything in the clipboard when clearing it --- app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java | 2 +- app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java index f4bbddc4..8881ecda 100644 --- a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java +++ b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java @@ -499,7 +499,7 @@ public class AutofillService extends AccessibilityService { clipboard.setPrimaryClip(clip); info.performAction(AccessibilityNodeInfo.ACTION_PASTE); - clip = ClipData.newPlainText("autofill_pm", "MyPasswordIsDaBest!"); + clip = ClipData.newPlainText("autofill_pm", ""); clipboard.setPrimaryClip(clip); if (settings.getBoolean("clear_clipboard_20x", false)) { for (int i = 0; i < 19; i++) { 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 095aab9a..848bb1a0 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java @@ -363,7 +363,7 @@ public class PgpHandler extends AppCompatActivity implements OpenPgpServiceConne // only clear the clipboard if we automatically copied the password to it if (settings.getBoolean("copy_on_decrypt", true) && clearClipboard) { Log.d("DELAY_SHOW", "Clearing the clipboard"); - ClipData clip = ClipData.newPlainText("pgp_handler_result_pm", "MyPasswordIsDaBest!"); + ClipData clip = ClipData.newPlainText("pgp_handler_result_pm", ""); clipboard.setPrimaryClip(clip); if (settings.getBoolean("clear_clipboard_20x", false)) { Handler handler = new Handler(); -- cgit v1.2.3