From 7bb9247bf6836fef5cbf1fd2439a43bf4dce63d2 Mon Sep 17 00:00:00 2001 From: Holly Sun Date: Fri, 26 Apr 2024 14:21:33 -0700 Subject: [PATCH] [reset] Call SearchUiManager#resetSearch instead of reset. This is a follow-up of ag/26362927. When it's in searching state, we only need to reset search instead of resetting everything. Test: search something and scroll in AA+. Trigger AA+ by filing an intent (adb shell am start -n com.google.android.apps.nexuslauncher/.NexusLauncherActivity -a android.intent.action.ALL_APPS). Notice the search RV is reset and scroll to top. Bug: 328505782 Flag: aconfig com.android.launcher3.enable_private_space nextfood Change-Id: I9d1d4386077433a676c1f3b8e3614fb848284a88 --- src/com/android/launcher3/Launcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index dc7c349458..227555b49b 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -1701,7 +1701,7 @@ public class Launcher extends StatefulActivity AbstractFloatingView.closeAllOpenViews(this); getStateManager().goToState(ALL_APPS, alreadyOnHome); if (mAppsView.isSearching()) { - mAppsView.reset(alreadyOnHome); + mAppsView.getSearchUiManager().resetSearch(); } if (mAppsView.getCurrentPage() != tab) { mAppsView.switchToTab(tab);