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

Commit 9862cdd8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Dispose mPointerEventDispatcher on UiThread" into main

parents 18b5ac2e 3994e991
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -91,10 +91,11 @@ public class PointerEventDispatcher extends InputEventReceiver {
    /** Dispose the associated input channel and clean up the listeners. */
    @Override
    public void dispose() {
        super.dispose();
        synchronized (mListeners) {
            mListeners.clear();
            mListenersArray = null;
        }
        // InputEventReceiver::dispose() must be called on the Looper thread.
        UiThread.getHandler().post(super::dispose);
    }
}