Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9804c047 authored by Hyunyoung Song's avatar Hyunyoung Song
Browse files

Fix NPE inside dispatchRestoreInstanceState

Bug: 192559704
Test: manual
Change-Id: I212518ac4a7feddd8e87f4be601332ea62e99313
parent 679f8bb9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
            }
        }