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

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

Merge "Don't removePluginListener() unless user is unlocked" into ub-launcher3-master

parents 7fe8a690 435b11b9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -391,12 +391,11 @@ public class TouchInteractionService extends Service implements PluginListener<O

    @Override
    public void onDestroy() {
        PluginManagerWrapper.INSTANCE.get(getBaseContext()).removePluginListener(this);

        sIsInitialized = false;
        if (mDeviceState.isUserUnlocked()) {
            mInputConsumer.unregisterInputConsumer();
            mOverviewComponentObserver.onDestroy();
            PluginManagerWrapper.INSTANCE.get(getBaseContext()).removePluginListener(this);
        }
        disposeEventHandlers();
        mDeviceState.destroy();