diff options
author | Matthew Wong <wongma@protonmail.ch> | 2015-07-28 03:33:04 -0400 |
---|---|---|
committer | Matthew Wong <wongma@protonmail.ch> | 2015-08-14 17:36:44 -0400 |
commit | e937ddf11121e919d27bcb9fd3c3e11e88e3ba3c (patch) | |
tree | ad29d458ae32ff629db8f0ea3bd5520dd442374b /app/src/main/java | |
parent | 02bfcf6c3f5ddd806dd9a92823926eced139842f (diff) |
Only try again paste/set after decryption if the correct password was entered and not e.g. cancel button pressed
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/AutofillActivity.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/AutofillActivity.java b/app/src/main/java/com/zeapo/pwdstore/AutofillActivity.java index d7561029..f52fe0a2 100644 --- a/app/src/main/java/com/zeapo/pwdstore/AutofillActivity.java +++ b/app/src/main/java/com/zeapo/pwdstore/AutofillActivity.java @@ -28,6 +28,8 @@ public class AutofillActivity extends AppCompatActivity { @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { finish(); - AutofillService.getService().decryptAndVerify(); + if (resultCode == RESULT_OK) { + AutofillService.getService().decryptAndVerify(); + } } } |