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

Commit 70da3e64 authored by Brian Isganitis's avatar Brian Isganitis Committed by Android (Google) Code Review
Browse files

Merge "Fix how task stack listener closes overlays on task changes." into udc-dev

parents f011d433 0aa30e22
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import static com.android.launcher3.AbstractFloatingView.TYPE_REBIND_SAFE;
import static com.android.launcher3.LauncherState.ALL_APPS;

import android.annotation.SuppressLint;
import android.content.ComponentName;
import android.content.Context;
import android.graphics.PixelFormat;
import android.view.Gravity;
@@ -36,7 +37,6 @@ import com.android.launcher3.AbstractFloatingView;
import com.android.launcher3.DeviceProfile;
import com.android.launcher3.taskbar.TaskbarActivityContext;
import com.android.launcher3.taskbar.TaskbarControllers;
import com.android.quickstep.views.DesktopTaskView;
import com.android.systemui.shared.system.TaskStackChangeListener;
import com.android.systemui.shared.system.TaskStackChangeListeners;

@@ -60,15 +60,15 @@ public final class TaskbarOverlayController {

    private final TaskStackChangeListener mTaskStackListener = new TaskStackChangeListener() {
        @Override
        public void onTaskStackChanged() {
            mProxyView.close(false);
        public void onTaskCreated(int taskId, ComponentName componentName) {
            // Created task will be below existing overlay, so move out of the way.
            hideWindow();
        }

        @Override
        public void onTaskMovedToFront(int taskId) {
            if (DesktopTaskView.DESKTOP_MODE_SUPPORTED) {
                mProxyView.close(false);
            }
            // New front task will be below existing overlay, so move out of the way.
            hideWindow();
        }
    };