Simple implementation of Taskbar Overflow.
- Adds placeholder view to represent the Overflow affordance. - Overflow button will always appear as long as there are any recent apps.* - Click / long click on the button will open KeyboardQuickSwitch - Relevant code is Guarded by Flags.taskbarOverflow. *Note that this is not up to spec. This change is only meant to setup the codebase to support Taskbar Overflow. Bug: 368119679 Test: open app, enter desktop windowing, click overflow button Flag: com.android.launcher3.taskbar_overflow Change-Id: I47f96797408fda09e8326ba8fb7981c91de80e36
This commit is contained in:
1 parent
0e795f08f6
commit
7645ef2ebd
8 files changed
+119
-4
No files matched your search
@@ -29,6 +29,7 @@ import static com.android.launcher3.AbstractFloatingView.TYPE_ON_BOARD_POPUP;
|
||||
import static com.android.launcher3.AbstractFloatingView.TYPE_REBIND_SAFE;
|
||||
import static com.android.launcher3.AbstractFloatingView.TYPE_TASKBAR_OVERLAY_PROXY;
|
||||
import static com.android.launcher3.Flags.enableCursorHoverStates;
|
||||
import static com.android.launcher3.Flags.taskbarOverflow;
|
||||
import static com.android.launcher3.Utilities.calculateTextHeight;
|
||||
import static com.android.launcher3.Utilities.isRunningInTestHarness;
|
||||
import static com.android.launcher3.config.FeatureFlags.ENABLE_TASKBAR_NAVBAR_UNIFICATION;
|
||||
@@ -1221,6 +1222,11 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
RecentsView recents = taskbarUIController.getRecentsView();
|
||||
boolean shouldCloseAllOpenViews = true;
|
||||
Object tag = view.getTag();
|
||||
|
||||
if (taskbarOverflow()) {
|
||||
mControllers.keyboardQuickSwitchController.closeQuickSwitchView(false);
|
||||
}
|
||||
|
||||
if (tag instanceof GroupTask groupTask) {
|
||||
handleGroupTaskLaunch(
|
||||
groupTask,
|
||||
|
||||
Reference in new issue
Block a user