Merge "Fix NullPointerException in AccessibilityServiceConnection#dispatchGesture" into sc-dev am: e463a7d440
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13612046 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I13b3d63b862594a01d4be8dd1cefa4d30d5c3479
This commit is contained in:
@@ -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