code: @Override
      public void onRestoreInstanceState(Parcelable state) {
  
          if (state instanceof Bundle) {
              Bundle bundle = (Bundle) state;
              //load everything
              PinViewSettings pinViewSettings = bundle.getParcelable("stateSettings");
              if (pinViewSettings != null) {
                  setSettings(pinViewSettings);
              }
              String pinResults = bundle.getString("statePinResults");
              setPinResults(pinResults);
              state = bundle.getParcelable("instanceState");
          }
          super.onRestoreInstanceState(state);
      }
docs: Retrieve the state of {@link PinView} when orientation screen changed.