@Override
 public void onSaveInstanceState(final Bundle outState) {
   super.onSaveInstanceState(outState);
   if (mActivatedPosition != ListView.INVALID_POSITION) {
     // Serialize and persist the activated item position.
     outState.putInt(STATE_ACTIVATED_POSITION, mActivatedPosition);
   }
 }
 @Override
 public void onSaveInstanceState(Bundle outState) {
   super.onSaveInstanceState(outState);
   if (mIsAddingNewSubtype) {
     outState.putBoolean(KEY_IS_ADDING_NEW_SUBTYPE, true);
   }
   if (mSubtypeEnablerNotificationDialog != null
       && mSubtypeEnablerNotificationDialog.isShowing()) {
     outState.putBoolean(KEY_IS_SUBTYPE_ENABLER_NOTIFICATION_DIALOG_OPEN, true);
     outState.putString(KEY_SUBTYPE_FOR_SUBTYPE_ENABLER, mSubtypePreferenceKeyForSubtypeEnabler);
   }
 }