diff --git a/quickstep/protos_overrides/launcher_atom_extension.proto b/quickstep/protos_overrides/launcher_atom_extension.proto index a1566f064d..f5a277bb95 100644 --- a/quickstep/protos_overrides/launcher_atom_extension.proto +++ b/quickstep/protos_overrides/launcher_atom_extension.proto @@ -22,6 +22,7 @@ option java_outer_classname = "LauncherAtomExtensions"; // Wrapper message for containers used at the quickstep level. // Message name should match with launcher_atom_extension.proto message at // the AOSP level. +// Next ID = 3 message ExtendedContainers { reserved 2; // Deleted fields @@ -31,10 +32,16 @@ message ExtendedContainers { } // Represents on-device search result container. +// Next ID = 4 message DeviceSearchResultContainer{ optional int32 query_length = 1; optional SearchAttributes search_attributes = 2; + // [0, m], m varies based on the display density and resolution + // To indicate the location of the tapped on-device search result. + // For application, it will be the column number in the apps row. + optional int32 grid_x = 3; + // Next ID = 4 message SearchAttributes{ // True if results are based on spell corrected query diff --git a/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsController.java b/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsController.java index 6fd98db19a..c56ac5b3d0 100644 --- a/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsController.java +++ b/quickstep/src/com/android/launcher3/taskbar/allapps/TaskbarAllAppsController.java @@ -171,8 +171,8 @@ public final class TaskbarAllAppsController { * This method should be called after an exit animation finishes, if applicable. */ void maybeCloseWindow() { - if (AbstractFloatingView.getOpenView(mAllAppsContext, TYPE_ALL) != null - || mAllAppsContext.getDragController().isSystemDragInProgress()) { + if (mAllAppsContext != null && (AbstractFloatingView.hasOpenView(mAllAppsContext, TYPE_ALL) + || mAllAppsContext.getDragController().isSystemDragInProgress())) { return; } mProxyView.close(false); diff --git a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java index 38a36e434b..f6589dee53 100644 --- a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java +++ b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java @@ -1799,6 +1799,7 @@ public abstract class AbsSwipeUpHandler, new PictureInPictureSurfaceTransaction.Builder() .setAlpha(0f) .build(); + tx.setShouldDisableCanAffectSystemUiFlags(false); int[] taskIds = TopTaskTracker.INSTANCE.get(mContext).getRunningSplitTaskIds(); for (int taskId : taskIds) { mRecentsAnimationController.setFinishTaskTransaction(taskId, diff --git a/quickstep/src/com/android/quickstep/logging/StatsLogCompatManager.java b/quickstep/src/com/android/quickstep/logging/StatsLogCompatManager.java index 3b9e2b2d8b..45c80366f4 100644 --- a/quickstep/src/com/android/quickstep/logging/StatsLogCompatManager.java +++ b/quickstep/src/com/android/quickstep/logging/StatsLogCompatManager.java @@ -582,14 +582,18 @@ public class StatsLogCompatManager extends StatsLogManager { } private static int getGridX(LauncherAtom.ItemInfo info, boolean parent) { - if (info.getContainerInfo().getContainerCase() == FOLDER) { + LauncherAtom.ContainerInfo containerInfo = info.getContainerInfo(); + if (containerInfo.getContainerCase() == FOLDER) { if (parent) { - return info.getContainerInfo().getFolder().getWorkspace().getGridX(); + return containerInfo.getFolder().getWorkspace().getGridX(); } else { - return info.getContainerInfo().getFolder().getGridX(); + return containerInfo.getFolder().getGridX(); } + } else if (containerInfo.getContainerCase() == EXTENDED_CONTAINERS) { + return containerInfo.getExtendedContainers() + .getDeviceSearchResultContainer().getGridX(); } else { - return info.getContainerInfo().getWorkspace().getGridX(); + return containerInfo.getWorkspace().getGridX(); } } diff --git a/quickstep/src/com/android/quickstep/util/SwipePipToHomeAnimator.java b/quickstep/src/com/android/quickstep/util/SwipePipToHomeAnimator.java index b222f51e50..833d705764 100644 --- a/quickstep/src/com/android/quickstep/util/SwipePipToHomeAnimator.java +++ b/quickstep/src/com/android/quickstep/util/SwipePipToHomeAnimator.java @@ -279,7 +279,10 @@ public class SwipePipToHomeAnimator extends RectFSpringAnim { // get the final leash operations but do not apply to the leash. final SurfaceControl.Transaction tx = PipSurfaceTransactionHelper.newSurfaceControlTransaction(); - return onAnimationUpdate(tx, new RectF(mDestinationBounds), END_PROGRESS); + final PictureInPictureSurfaceTransaction pipTx = + onAnimationUpdate(tx, new RectF(mDestinationBounds), END_PROGRESS); + pipTx.setShouldDisableCanAffectSystemUiFlags(true); + return pipTx; } private RotatedPosition getRotatedPosition(float progress) { diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index 8f6fba7f4b..12ddc38be4 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -141,8 +141,8 @@ import com.android.launcher3.util.IntSet; import com.android.launcher3.util.MultiValueAlpha; import com.android.launcher3.util.ResourceBasedOverride.Overrides; import com.android.launcher3.util.RunnableList; -import com.android.launcher3.util.SplitConfigurationOptions.StagePosition; import com.android.launcher3.util.SplitConfigurationOptions.SplitBounds; +import com.android.launcher3.util.SplitConfigurationOptions.StagePosition; import com.android.launcher3.util.Themes; import com.android.launcher3.util.TranslateEdgeEffect; import com.android.launcher3.util.ViewPool; @@ -4562,6 +4562,7 @@ public abstract class RecentsView diff --git a/res/values-v31/colors.xml b/res/values-v31/colors.xml index 7bbdbd18fa..7a75ddb5c4 100644 --- a/res/values-v31/colors.xml +++ b/res/values-v31/colors.xml @@ -56,4 +56,9 @@ @android:color/system_accent1_100 @android:color/system_accent2_600 + + @android:color/system_accent1_600 + @android:color/system_accent2_200 + @android:color/system_accent1_300 + @android:color/system_neutral2_700 diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 165ec5edf2..9f25905514 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -53,6 +53,8 @@ + + diff --git a/res/values/colors.xml b/res/values/colors.xml index 2bc923952d..309a1c564a 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -85,4 +85,9 @@ #00677E #5F757E #005A6E + + #00668B + #B5CAD7 + #4BB6E8 + #40484D diff --git a/res/values/styles.xml b/res/values/styles.xml index 21095109a6..65bba7b02c 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -65,6 +65,8 @@ @color/workspace_accent_color_light @color/workspace_text_color_dark @color/overview_scrim + @color/preload_icon_accent_color_light + @color/preload_icon_background_color_light false false @@ -123,6 +125,8 @@ @android:color/white #DD000000 @color/overview_scrim_dark + @color/preload_icon_accent_color_dark + @color/preload_icon_background_color_dark