TonicArtos / StickyGridHeaders

This project has been superseded by SuperSLiM, a layout manager for RecyclerView. I strongly recommend using SuperSLiM and not StickyGridHeaders.
http://tonicartos.com
Apache License 2.0
1.47k stars 442 forks source link

Prevent of illegal cast failure #80

Closed nicokaiser79 closed 6 years ago

nicokaiser79 commented 10 years ago

@Override public void onRestoreInstanceState(Parcelable state) { if (!(state instanceof SavedState)) { super.onRestoreInstanceState(state); return; }

    SavedState ss = (SavedState)state;
    super.onRestoreInstanceState(ss.getSuperState());
    mAreHeadersSticky = ss.areHeadersSticky;

    requestLayout();
}