From e937ddf11121e919d27bcb9fd3c3e11e88e3ba3c Mon Sep 17 00:00:00 2001 From: Matthew Wong Date: Tue, 28 Jul 2015 03:33:04 -0400 Subject: Only try again paste/set after decryption if the correct password was entered and not e.g. cancel button pressed --- app/src/main/java/com/zeapo/pwdstore/AutofillActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); + } } } -- cgit v1.2.3