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

Commit f1a45496 authored by Adam Powell's avatar Adam Powell
Browse files

Bug 4726236 - NPE at dispatchRestoreInstanceState

Change-Id: Ib7eba6ead85fa4daa8046bbc2d4d3fcc1d4223c3
parent 414c4984
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -177,8 +177,10 @@ public class ListMenuPresenter implements MenuPresenter, AdapterView.OnItemClick

    public void restoreHierarchyState(Bundle inState) {
        SparseArray<Parcelable> viewStates = inState.getSparseParcelableArray(VIEWS_TAG);
        if (viewStates != null) {
            ((View) mMenuView).restoreHierarchyState(viewStates);
        }
    }

    private class MenuAdapter extends BaseAdapter {
        public int getCount() {