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

Commit e57006fe authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[AA+] Reset search manager when exiting all apps." into sc-dev

parents 827ff401 ea56f849
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1076,9 +1076,10 @@ public class Launcher extends StatefulActivity<LauncherState> implements Launche
            getRotationHelper().setCurrentStateRequest(REQUEST_NONE);
        }

        if (mPrevLauncherState != state && !ALL_APPS.equals(state)
        if (ALL_APPS.equals(mPrevLauncherState) && !ALL_APPS.equals(state)
                // Making sure mAllAppsSessionLogId is not null to avoid double logging.
                && mAllAppsSessionLogId != null) {
            getAppsView().getSearchUiManager().resetSearch();
            getStatsLogManager().logger().log(LAUNCHER_ALLAPPS_EXIT);
            mAllAppsSessionLogId = null;
        }