From 5f14ec50dd3d5350ae345bb57492d7d052c4667e Mon Sep 17 00:00:00 2001 From: Schneider Victor-tulias Date: Fri, 22 Mar 2024 11:30:50 -0400 Subject: [PATCH 1/8] Focus the first task after the desktop task when launching overview from KQS Flag: LEGACY ENABLE_KEYBOARD_QUICK_SWITCH ENABLED Flag: ACONFIG com.android.window.flags.enable_desktop_windowing_mode DEVELOPMENT Fixes: 327420683 Test: opened overview using KQS Change-Id: I9395ad6065844bf5f5007180cd8c3f80573ee473 --- .../launcher3/taskbar/KeyboardQuickSwitchViewController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/KeyboardQuickSwitchViewController.java b/quickstep/src/com/android/launcher3/taskbar/KeyboardQuickSwitchViewController.java index 5134f3bd51..8ff6e0a7cc 100644 --- a/quickstep/src/com/android/launcher3/taskbar/KeyboardQuickSwitchViewController.java +++ b/quickstep/src/com/android/launcher3/taskbar/KeyboardQuickSwitchViewController.java @@ -138,7 +138,7 @@ public class KeyboardQuickSwitchViewController { // views have been added in the KeyboardQuickSwitchView. GroupTask task = mControllerCallbacks.getTaskAt(index); if (task == null) { - return Math.max(0, index); + return mOnDesktop ? 1 : Math.max(0, index); } if (mControllerCallbacks.isTaskRunning(task)) { // Ignore attempts to run the selected task if it is already running. From 30d9b190d5f789c3e354d546fb22ed21eac8d55e Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Fri, 22 Mar 2024 15:13:48 +0000 Subject: [PATCH 2/8] Simplify OverviewActionsView layout to avoid unexpected misalignemnt - Removed the weight=3 space on left/right and replace with gracvity=central_horizontal - Removed unused oav_three_button_space - Removed irrelevant layout_gravity (gravity within parent), as the LinearLayout is already taking full parent width, and its vertical alignemnt si controlled by `updateVerticalMargin` in code Bug: 329255757 Test: OverviewImageTest Flag: None (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:2cf1a0c08d41ee7a29ea920c93850d3914ed7cd8) Merged-In: Ice087dde7d3c36b4536d36ce82c382c31c124855 Change-Id: Ice087dde7d3c36b4536d36ce82c382c31c124855 --- .../res/layout/overview_actions_container.xml | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/quickstep/res/layout/overview_actions_container.xml b/quickstep/res/layout/overview_actions_container.xml index 5bd5823094..758622b64b 100644 --- a/quickstep/res/layout/overview_actions_container.xml +++ b/quickstep/res/layout/overview_actions_container.xml @@ -23,14 +23,9 @@ android:id="@+id/action_buttons" android:layout_width="match_parent" android:layout_height="@dimen/overview_actions_height" - android:layout_gravity="bottom|center_horizontal" + android:gravity="center_horizontal" android:orientation="horizontal"> - -