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

Commit 82fc5c83 authored by Tony Wickham's avatar Tony Wickham Committed by Android (Google) Code Review
Browse files

Merge "Ensure mConsumer isn't set to null in reset()." into sc-dev

parents fe139cdf 9c10d08e
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -813,7 +813,13 @@ public class TouchInteractionService extends Service implements PluginListener<O
    }

    private void reset() {
        if (mResetGestureInputConsumer != null) {
            mConsumer = mUncheckedConsumer = mResetGestureInputConsumer;
        } else {
            // mResetGestureInputConsumer isn't initialized until onUserUnlocked(), so reset to
            // NO_OP until then (we never want these to be null).
            mConsumer = mUncheckedConsumer = InputConsumer.NO_OP;
        }
        mGestureState = DEFAULT_STATE;
        // By default, use batching of the input events, but check receiver before using in the rare
        // case that the monitor was disposed before the swipe settled