Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7bb9247b authored by Holly Sun's avatar Holly Sun
Browse files

[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
parent f3296f80
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1701,7 +1701,7 @@ public class Launcher extends StatefulActivity<LauncherState>
        AbstractFloatingView.closeAllOpenViews(this);
        getStateManager().goToState(ALL_APPS, alreadyOnHome);
        if (mAppsView.isSearching()) {
            mAppsView.reset(alreadyOnHome);
            mAppsView.getSearchUiManager().resetSearch();
        }
        if (mAppsView.getCurrentPage() != tab) {
            mAppsView.switchToTab(tab);