code: @Override
      public Parcelable onSaveInstanceState() {
  
          Bundle bundle = new Bundle();
          bundle.putParcelable("instanceState", super.onSaveInstanceState());
          saveSettings();
          bundle.putParcelable("stateSettings", mPinViewSettings);
          //save everything
          bundle.putString("statePinResults", getPinResults());
          return bundle;
      }
docs: Save the state of {@link PinView} when orientation screen changed.