summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMatthew Wong <wongma@protonmail.ch>2015-07-28 03:33:04 -0400
committerMatthew Wong <wongma@protonmail.ch>2015-08-14 17:36:44 -0400
commite937ddf11121e919d27bcb9fd3c3e11e88e3ba3c (patch)
treead29d458ae32ff629db8f0ea3bd5520dd442374b /app
parent02bfcf6c3f5ddd806dd9a92823926eced139842f (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')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/AutofillActivity.java4
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();
+ }
}
}