Пример #1
0
 public void onRestoreInstanceState(android.os.Parcelable state) {
   if (callbackProcs != null && callbackProcs[CB_RESTORE_INSTANCE_STATE] != null) {
     super.onRestoreInstanceState(state);
     Script.callMethod(callbackProcs[CB_RESTORE_INSTANCE_STATE], "call", state);
   } else {
     super.onRestoreInstanceState(state);
   }
 }
Пример #2
0
  @Override
  public void onRestoreInstanceState(Parcelable state) {
    if (!(state instanceof SavedState)) {
      super.onRestoreInstanceState(state);
      return;
    }

    SavedState savedState = (SavedState) state;
    super.onRestoreInstanceState(savedState.getSuperState());

    mSavedState = savedState;
  }