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

Commit 481964bf authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix that AccessibilityServiceConnection#serviceInterface may be invalid...

Merge "Fix that AccessibilityServiceConnection#serviceInterface may be invalid in the async" am: 700fb9eb am: bf6cc679

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1870459

Change-Id: Ic992d3730023285ec0daf4f7883ed91f38b00578
parents 25adfeb8 bf6cc679
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -407,7 +407,7 @@ class AccessibilityServiceConnection extends AbstractAccessibilityServiceConnect
    @Override
    public void dispatchGesture(int sequence, ParceledListSlice gestureSteps, int displayId) {
        synchronized (mLock) {
            if (mSecurityPolicy.canPerformGestures(this)) {
            if (mServiceInterface != null && mSecurityPolicy.canPerformGestures(this)) {
                MotionEventInjector motionEventInjector =
                        mSystemSupport.getMotionEventInjectorForDisplayLocked(displayId);
                if (motionEventInjector != null