diff options
author | Matthew Wong <matt2566@hotmail.com> | 2016-03-07 20:04:51 -0500 |
---|---|---|
committer | Matthew Wong <matt2566@hotmail.com> | 2016-03-07 20:04:51 -0500 |
commit | ba3cf0162da2d7dc732c735c89949cc98faf120b (patch) | |
tree | 94429bd6c6aafaa0fe21441ffb19f9aa05ab7e85 | |
parent | cd6b6874a64a6689690da8320a9e0efb6392b4d5 (diff) |
fix #172 firefox autofill crash
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 526d6f98..145843fc 100644 --- a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java +++ b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java @@ -105,7 +105,7 @@ public class AutofillService extends AccessibilityService { // or if page changes in chrome if (event.getEventType() == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED || (event.getEventType() == AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED - && event.getSource() != null + && event.getSource() != null && event.getSource().getPackageName() != null && (event.getSource().getPackageName().equals("com.android.chrome") || event.getSource().getPackageName().equals("com.android.browser")))) { // there is a chance for getRootInActiveWindow() to return null at any time. save it. |