diff options
author | Matthew Wong <wongma@protonmail.ch> | 2015-07-21 16:10:55 -0400 |
---|---|---|
committer | Matthew Wong <wongma@protonmail.ch> | 2015-07-21 16:15:36 -0400 |
commit | d95286660ad5e626c75f4bc9f70e51277be67273 (patch) | |
tree | 3cec2cac9885e7304a043cc73f719e272355ee7e /app/src/main/java | |
parent | 9ff126a3fbbf50679870e709d4118a86f3ac14c2 (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.java | 6 |
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(""); |