mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 02:38:20 +00:00
Merge "Show highlight around the selected overview tile" into tm-qpr-dev am: 4004c9d42d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/21452622 Change-Id: I007e544b1e082b249923aa10d5d359e439f2b46f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user