diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java index d1e643fd9f..f4fa1e5f7a 100644 --- a/src/com/android/launcher3/allapps/AllAppsContainerView.java +++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java @@ -188,11 +188,11 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo Bundle state = (Bundle) sparseArray.get(R.id.work_tab_state_id, null); if (state != null) { int currentPage = state.getInt(BUNDLE_KEY_CURRENT_PAGE, 0); - if (currentPage != 0) { + if (currentPage != 0 && mViewPager != null) { mViewPager.setCurrentPage(currentPage); rebindAdapters(true); } else { - mSearchUiManager.resetSearch(); + reset(true); } }