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

Commit c21d842c authored by Ameer Armaly's avatar Ameer Armaly
Browse files

Service Gesture Detection: don't lock when executing double tap in the framework.

Only lock when obtaining the input filter to avoid deadlock when bringing up talkback settings.
Fix:223673816
Test: Manual. Bring up talkback settings and insure that there is no ten second wait.

Change-Id: Ic26a3a08a7c67b096a7995332e3ed5096fde4847
parent 4f027ec4
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -4290,11 +4290,15 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
    }

    private void onDoubleTapInternal(int displayId) {
        AccessibilityInputFilter inputFilter = null;
        synchronized (mLock) {
            if (mHasInputFilter && mInputFilter != null) {
                mInputFilter.onDoubleTap(displayId);
                inputFilter = mInputFilter;
            }
        }
        if (inputFilter != null) {
            inputFilter.onDoubleTap(displayId);
        }
    }

    @Override