fix #172 firefox autofill crash
This commit is contained in:
parent
cd6b6874a6
commit
ba3cf0162d
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ public class AutofillService extends AccessibilityService {
|
||||||
// or if page changes in chrome
|
// or if page changes in chrome
|
||||||
if (event.getEventType() == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED
|
if (event.getEventType() == AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED
|
||||||
|| (event.getEventType() == AccessibilityEvent.TYPE_WINDOW_CONTENT_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.chrome")
|
||||||
|| event.getSource().getPackageName().equals("com.android.browser")))) {
|
|| event.getSource().getPackageName().equals("com.android.browser")))) {
|
||||||
// there is a chance for getRootInActiveWindow() to return null at any time. save it.
|
// there is a chance for getRootInActiveWindow() to return null at any time. save it.
|
||||||
|
|
Loading…
Reference in a new issue