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

Commit 8d1aae9e authored by Arthur Hung's avatar Arthur Hung Committed by android-build-merger
Browse files

Merge "Fix a deadlock between WindowManagerGlobal and WindowManagerService"...

Merge "Fix a deadlock between WindowManagerGlobal and WindowManagerService" into qt-dev am: 99d4417d
am: 2ab46498

Change-Id: I04c80d3e4bc37e9e0f6f8658df48cb6b282d360a
parents b977331b 2ab46498
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -113,7 +113,12 @@ class SystemGesturesPointerEventListener implements PointerEventListener {
        // statistics because it passes every touch event though a GestureDetector. By creating an
        // anonymous subclass of GestureDetector, these statistics will be recorded with a unique
        // source name that can be filtered.
        mGestureDetector = new GestureDetector(mContext, new FlingGestureDetector(), mHandler) {};

        // GestureDetector would get a ViewConfiguration instance by context, that may also
        // create a new WindowManagerImpl for the new display, and lock WindowManagerGlobal
        // temporarily in the constructor that would make a deadlock.
        mHandler.post(() -> mGestureDetector =
                new GestureDetector(mContext, new FlingGestureDetector(), mHandler) {});
    }

    @Override