Let dialog be null

This commit is contained in:
Matthew Wong 2015-11-06 00:01:03 -05:00 committed by Matthew Wong
parent 28eae33567
commit d68c06a4a6

View file

@ -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;
}
}