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

This commit is contained in:
TreeHugger Robot
2021-06-08 21:50:31 +00:00
committed by Android (Google) Code Review

View File

@@ -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;
}