diff --git a/src/com/android/launcher3/allapps/FloatingHeaderView.java b/src/com/android/launcher3/allapps/FloatingHeaderView.java index 378450e76a..5a66ccd386 100644 --- a/src/com/android/launcher3/allapps/FloatingHeaderView.java +++ b/src/com/android/launcher3/allapps/FloatingHeaderView.java @@ -74,6 +74,7 @@ public class FloatingHeaderView extends LinearLayout implements protected boolean mTabsHidden; protected int mMaxTranslation; + private boolean mMainRVActive = true; public FloatingHeaderView(@NonNull Context context) { this(context, null); @@ -95,7 +96,7 @@ public class FloatingHeaderView extends LinearLayout implements mMainRV = setupRV(mMainRV, mAH[AllAppsContainerView.AdapterHolder.MAIN].recyclerView); mWorkRV = setupRV(mWorkRV, mAH[AllAppsContainerView.AdapterHolder.WORK].recyclerView); mParent = (ViewGroup) mMainRV.getParent(); - setMainActive(true); + setMainActive(mMainRVActive); reset(false); } @@ -108,6 +109,7 @@ public class FloatingHeaderView extends LinearLayout implements public void setMainActive(boolean active) { mCurrentRV = active ? mMainRV : mWorkRV; + mMainRVActive = active; } public int getMaxTranslation() {