Merge "Fix NullPointerException in AccessibilityServiceConnection#dispatchGesture" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e463a7d440
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user