set the timer to clear the clipboard on copy

fix #244
This commit is contained in:
Mohamed Zenadi
2016-12-31 12:33:23 +01:00
parent 1fb66b3356
commit ddd81d8f7e

View File

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