Fix to avoid NPE with LiveSearchManager.
Bug: 179911188 Test: manual Change-Id: Ic7f8ae7f7e2795eb18569670e166310102b7ea02
This commit is contained in:
1 parent
99f23c9714
commit
91d4f9f007
1 file changed
+2
-2
@@ -153,11 +153,11 @@ public class LiveSearchManager implements StateListener<LauncherState> {
|
||||
clearWidgetHost();
|
||||
}
|
||||
|
||||
if (finalState.equals(ALL_APPS)) {
|
||||
if (ALL_APPS.equals(finalState)) {
|
||||
// creates new instance ID since new all apps session is started.
|
||||
mLogInstanceId = new InstanceIdSequence().newInstanceId();
|
||||
allAppsLogger().log(LAUNCHER_ALLAPPS_ENTRY);
|
||||
} else if (mPrevLauncherState.equals(ALL_APPS)
|
||||
} else if (ALL_APPS.equals(mPrevLauncherState)
|
||||
// Check if mLogInstanceId is not null; to avoid NPE when LAUNCHER_ALLAPPS_EXIT is
|
||||
// triggered multiple times
|
||||
&& mLogInstanceId != null) {
|
||||
|
||||
Reference in new issue
Block a user