Update using tabs boolean immediately if it changes.

It is less erroprone to assign the new value immediately after we have
changed for a change.

Test: Manual
Bug: 222552955
Change-Id: Ief79ce0b25587c6b6e4f41e82b33692b06b5d083
This commit is contained in:
Brian Isganitis
2022-03-04 20:04:27 -08:00
parent 80fed35379
commit ddf8ab0f4a

View File

@@ -443,8 +443,8 @@ public abstract class BaseAllAppsContainerView<T extends Context & ActivityConte
if (showTabs == mUsingTabs && !force) {
return;
}
replaceRVContainer(showTabs);
mUsingTabs = showTabs;
replaceRVContainer(mUsingTabs);
mAllAppsStore.unregisterIconContainer(mAH.get(AdapterHolder.MAIN).mRecyclerView);
mAllAppsStore.unregisterIconContainer(mAH.get(AdapterHolder.WORK).mRecyclerView);