Skip to content
Snippets Groups Projects
Commit bf6cc679 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix that AccessibilityServiceConnection#serviceInterface may be invalid...

Merge "Fix that AccessibilityServiceConnection#serviceInterface may be invalid in the async" am: 700fb9eb

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1870459

Change-Id: I83ebfd13525cbd567d16eef6b2201a9956bbf292
parents 13a74e1f 700fb9eb
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment