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:
1 parent
80fed35379
commit
ddf8ab0f4a
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user