From d68c06a4a6a06a2b27889d9907b2188607d98572 Mon Sep 17 00:00:00 2001 From: Matthew Wong Date: Fri, 6 Nov 2015 00:01:03 -0500 Subject: Let dialog be null --- app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/src') diff --git a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java index 05e10b90..e694dfa4 100644 --- a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java +++ b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java @@ -106,6 +106,7 @@ public class AutofillService extends AccessibilityService { } // if it was not a click, the field was refocused or another field was focused; recreate dialog.dismiss(); + dialog = null; } // ignore the ACTION_FOCUS from decryptAndVerify otherwise dialog will appear after Fill @@ -175,6 +176,7 @@ public class AutofillService extends AccessibilityService { } if (dismiss && dialog != null && dialog.isShowing()) { dialog.dismiss(); + dialog = null; } } -- cgit v1.2.3