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

Commit 3994e991 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Dispose mPointerEventDispatcher on UiThread

The function InputEventReceiver::dispose must be called on the looper thread. This is documented in InputEventReceiver::dispose:


   /**
     * Disposes the receiver.
     * Must be called on the same Looper thread to which the receiver is attached.
     */
    public void dispose() {
        dispose(false);
    }

That expectation is not currently met in the DisplayContent code.

Update the code so that it conforms to the expectation.

This will allow us in subsequent CLs to crash whenever dispose is called on the wrong thread.

Bug: 376713684
Bug: 311142655
Test: presubmit
Flag: EXEMPT bugfix
Change-Id: I86ffb14fee7c3e7b31a47205f84572ae640d234b
parent ca4b2104
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment