コード例 #1
0
 @Override
 protected Parcelable onSaveInstanceState() {
   final Parcelable superState = super.onSaveInstanceState();
   if (isPersistent()) {
     return superState;
   }
   final SavedState myState = new SavedState(superState);
   myState.progress = mProgress;
   myState.max = mMax;
   return myState;
 }