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

Commit 7849a3d7 authored by Aurimas Liutikas's avatar Aurimas Liutikas
Browse files

Fix crash when restoring SearchView.

I forgot to include Parcelable.Creator when I added SearchView
iconified state saving.

Bug: 27357167
Change-Id: Ia96490aa9c12c4042f50ba4b1aeb7422b37a1d4c
parent 768d8137
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1358,6 +1358,17 @@ public class SearchView extends LinearLayout implements CollapsibleActionView {
                    + Integer.toHexString(System.identityHashCode(this))
                    + " isIconified=" + isIconified + "}";
        }

        public static final Parcelable.Creator<SavedState> CREATOR =
                new Parcelable.Creator<SavedState>() {
                    public SavedState createFromParcel(Parcel in) {
                        return new SavedState(in);
                    }

                    public SavedState[] newArray(int size) {
                        return new SavedState[size];
                    }
                };
    }

    @Override