Merge "Fix that AccessibilityServiceConnection#serviceInterface may be invalid in the async" am: 700fb9ebeb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1870459 Change-Id: I83ebfd13525cbd567d16eef6b2201a9956bbf292
This commit is contained in:
@@ -407,7 +407,7 @@ class AccessibilityServiceConnection extends AbstractAccessibilityServiceConnect
|
|||||||
@Override
|
@Override
|
||||||
public void dispatchGesture(int sequence, ParceledListSlice gestureSteps, int displayId) {
|
public void dispatchGesture(int sequence, ParceledListSlice gestureSteps, int displayId) {
|
||||||
synchronized (mLock) {
|
synchronized (mLock) {
|
||||||
if (mSecurityPolicy.canPerformGestures(this)) {
|
if (mServiceInterface != null && mSecurityPolicy.canPerformGestures(this)) {
|
||||||
MotionEventInjector motionEventInjector =
|
MotionEventInjector motionEventInjector =
|
||||||
mSystemSupport.getMotionEventInjectorForDisplayLocked(displayId);
|
mSystemSupport.getMotionEventInjectorForDisplayLocked(displayId);
|
||||||
if (motionEventInjector != null
|
if (motionEventInjector != null
|
||||||
|
|||||||
Reference in New Issue
Block a user