Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85f6fb71 authored by Charles Chen's avatar Charles Chen
Browse files

Fixing bug 2086021. AccessiblityService could sometimes get a null pointer

exception if multiple accessibility services are running and there are
several events all happening within a short period of time.
parent 1005569f
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -211,8 +211,10 @@ public abstract class AccessibilityService extends Service {
            switch (message.what) {
                case DO_ON_ACCESSIBILITY_EVENT :
                    AccessibilityEvent event = (AccessibilityEvent) message.obj;
                    if (event != null){
                      mTarget.onAccessibilityEvent(event);
                      event.recycle();
                    }
                    return;
                case DO_ON_INTERRUPT :
                    mTarget.onInterrupt();