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

Commit 4004c9d4 authored by Ats Jenk's avatar Ats Jenk Committed by Android (Google) Code Review
Browse files

Merge "Show highlight around the selected overview tile" into tm-qpr-dev

parents 7729aa4c cc0b8602
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ import com.android.launcher3.statemanager.StatefulActivity;
import com.android.launcher3.taskbar.TaskbarUIController;
import com.android.launcher3.util.RunnableList;
import com.android.quickstep.RecentsAnimationCallbacks.RecentsAnimationListener;
import com.android.quickstep.views.DesktopTaskView;
import com.android.quickstep.views.RecentsView;
import com.android.quickstep.views.TaskView;
import com.android.systemui.shared.recents.model.ThumbnailData;
@@ -185,6 +186,11 @@ public class OverviewCommandHelper {
                    && dp != null
                    && (dp.isTablet || dp.isTwoPanels);

            if (DesktopTaskView.DESKTOP_MODE_SUPPORTED) {
                // TODO(b/268075592): add support for quickswitch to/from desktop
                allowQuickSwitch = false;
            }

            if (cmd.type == TYPE_HIDE) {
                if (!allowQuickSwitch) {
                    return true;
+5 −2
Original line number Diff line number Diff line
@@ -431,9 +431,12 @@ public class TaskView extends FrameLayout implements Reusable {
        mCurrentFullscreenParams = new FullscreenDrawParams(context);
        mDigitalWellBeingToast = new DigitalWellBeingToast(mActivity, this);

        setWillNotDraw(!FeatureFlags.ENABLE_KEYBOARD_QUICK_SWITCH.get());
        boolean keyboardFocusHighlightEnabled = FeatureFlags.ENABLE_KEYBOARD_QUICK_SWITCH.get()
                || DesktopTaskView.DESKTOP_MODE_SUPPORTED;

        mBorderAnimator = !FeatureFlags.ENABLE_KEYBOARD_QUICK_SWITCH.get()
        setWillNotDraw(!keyboardFocusHighlightEnabled);

        mBorderAnimator = !keyboardFocusHighlightEnabled
                ? null
                : new BorderAnimator(
                        /* borderBoundsBuilder= */ this::updateBorderBounds,