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

Commit e41806e6 authored by huyuxin's avatar huyuxin Committed by Yuxin Hu
Browse files

Fix that AccessibilityServiceConnection#serviceInterface may be invalid in the async



Bug: 204104901
Test: Manual

Change-Id: Iab66934872ad6d480eb60d8cd418bd8ab3feda49
Signed-off-by: default avatarhuyuxin <huyuxin@xiaomi.com>
parent 104d96f9
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