Merge "Fixes a crash when turning off workprofile while the workprofile tab is active." into ub-launcher3-edmonton

This commit is contained in:
TreeHugger Robot 2018-05-17 15:51:40 +00:00 committed by Android (Google) Code Review
commit 48059dc706
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ public class FloatingHeaderView extends LinearLayout implements
mMainRV = setupRV(mMainRV, mAH[AllAppsContainerView.AdapterHolder.MAIN].recyclerView); mMainRV = setupRV(mMainRV, mAH[AllAppsContainerView.AdapterHolder.MAIN].recyclerView);
mWorkRV = setupRV(mWorkRV, mAH[AllAppsContainerView.AdapterHolder.WORK].recyclerView); mWorkRV = setupRV(mWorkRV, mAH[AllAppsContainerView.AdapterHolder.WORK].recyclerView);
mParent = (ViewGroup) mMainRV.getParent(); mParent = (ViewGroup) mMainRV.getParent();
setMainActive(mMainRVActive); setMainActive(mMainRVActive || mWorkRV == null);
reset(false); reset(false);
} }