public void onRestoreInstanceState(Bundle savedInstanceState) {
        byte[] states = savedInstanceState.getByteArray(SELECTED_ITEMS_KEY);
        if ( null != states ) {
            Parcel inParcel = Parcel.obtain();
            inParcel.unmarshall(states, 0, states.length);
            inParcel.setDataPosition(0);
            mCheckStates = inParcel.readSparseBooleanArray();
            final int numStates = inParcel.readInt();
            mCheckedIdStates.clear();
            for (int i=0; i<numStates; i++) {
                final long key = inParcel.readLong();
                final int value = inParcel.readInt();
                mCheckedIdStates.put(key, value);
            }
        }
    }
Returns the checked state of the specified position. The result is only
valid if the choice mode has been set to AbsListView.CHOICE_MODE_SINGLE,
but the code does not check this.

@param position The item whose checked state to return
@return The item's checked state
@see #setChoiceMode(int)
app/src/main/java/com/example/android/sunshine/app/ItemChoiceManager.java