Fix work mode switch bugging out when entering search
This commit is contained in:
@@ -481,6 +481,10 @@ public class AllAppsContainerView extends StretchRecyclerViewContainer implement
|
||||
});
|
||||
onActivePageChanged(mViewPager.getNextPage());
|
||||
} else {
|
||||
if (mWorkModeSwitch != null) {
|
||||
removeView(mWorkModeSwitch);
|
||||
mWorkModeSwitch = null;
|
||||
}
|
||||
mAH[AdapterHolder.MAIN].setup(findViewById(R.id.apps_list_view), null);
|
||||
mAH[AdapterHolder.WORK].recyclerView = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user