do not put anything in the clipboard when clearing it

This commit is contained in:
Mohamed Zenadi 2016-12-31 12:35:45 +01:00
parent ddd81d8f7e
commit 8d5473a543
2 changed files with 2 additions and 2 deletions

View file

@ -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++) {

View file

@ -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();