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

Commit e463a7d4 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix NullPointerException in AccessibilityServiceConnection#dispatchGesture" into sc-dev

parents 8a6a2bce 20fee32a
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -376,7 +376,8 @@ class AccessibilityServiceConnection extends AbstractAccessibilityServiceConnect
            if (mSecurityPolicy.canPerformGestures(this)) {
            if (mSecurityPolicy.canPerformGestures(this)) {
                MotionEventInjector motionEventInjector =
                MotionEventInjector motionEventInjector =
                        mSystemSupport.getMotionEventInjectorForDisplayLocked(displayId);
                        mSystemSupport.getMotionEventInjectorForDisplayLocked(displayId);
                if (mWindowManagerService.isTouchOrFaketouchDevice()) {
                if (motionEventInjector != null
                        && mWindowManagerService.isTouchOrFaketouchDevice()) {
                    motionEventInjector.injectEvents(
                    motionEventInjector.injectEvents(
                            gestureSteps.getList(), mServiceInterface, sequence, displayId);
                            gestureSteps.getList(), mServiceInterface, sequence, displayId);
                } else {
                } else {