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

Commit 679d920b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add null check for input receiver before updating batching" into ub-launcher3-master

parents e108cc60 0c943966
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -732,9 +732,12 @@ public class TouchInteractionService extends Service implements PluginListener<O
    private void reset() {
        mConsumer = mUncheckedConsumer = mResetGestureInputConsumer;
        mGestureState = DEFAULT_STATE;
        // By default, use batching of the input events
        // 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
        if (mInputEventReceiver != null) {
            mInputEventReceiver.setBatchingEnabled(true);
        }
    }

    private void preloadOverview(boolean fromInit) {
        if (!mDeviceState.isUserUnlocked()) {