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);
   }
 }
Exemple #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;
  }