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

Commit ea56f849 authored by thiruram's avatar thiruram Committed by Thiru Ramasamy
Browse files

[AA+] Reset search manager when exiting all apps.

This is required to log search session exits properly, especially when exiting AllApps without clearing search query.

Bug: 178562918
Test: Manual
Change-Id: Id4c1007b051e9efd9ae5929c274a70cf3ae3cbf1
parent 26ab4621
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;
        }