@Override
    protected Parcelable onSaveInstanceState() {
        Parcelable superState = super.onSaveInstanceState();
        SavedState state = new SavedState(superState);

        if (mState == null) mState = new Bundle();
        saveState(mState);

        state.mState = mState;
        return state;
    }
Restores the state of the drawer.

@param in A parcelable containing the drawer state.
menudrawer/src/net/simonvt/menudrawer/MenuDrawer.java