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

Commit 6d5a1c13 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing crash when unfolding with an app already open

Bug: 227388787
Test: Manual
Change-Id: Ib1726b99a978bd613c337c2eff4873322d894485
parent c248d6f0
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ import com.android.launcher3.Utilities;
import com.android.launcher3.config.FeatureFlags;
import com.android.launcher3.provider.RestoreDbTask;
import com.android.launcher3.statemanager.StatefulActivity;
import com.android.launcher3.taskbar.TaskbarActivityContext;
import com.android.launcher3.taskbar.TaskbarManager;
import com.android.launcher3.testing.TestLogging;
import com.android.launcher3.testing.TestProtocol;
@@ -687,11 +688,9 @@ public class TouchInteractionService extends Service
            }

            // If Taskbar is present, we listen for long press to unstash it.
            BaseActivityInterface activityInterface = newGestureState.getActivityInterface();
            StatefulActivity activity = activityInterface.getCreatedActivity();
            if (activity != null && activity.getDeviceProfile().isTaskbarPresent) {
                base = new TaskbarStashInputConsumer(this, base, mInputMonitorCompat,
                        mTaskbarManager.getCurrentActivityContext());
            TaskbarActivityContext tac = mTaskbarManager.getCurrentActivityContext();
            if (tac != null) {
                base = new TaskbarStashInputConsumer(this, base, mInputMonitorCompat, tac);
            }

            // If Bubbles is expanded, use the overlay input consumer, which will close Bubbles