code: @Override
      public void setVisibility(int visibility) {
          super.setVisibility(visibility);
          // When going from state gone to visible with a temporary item selected, but the array has
          // changed (by toggling FLAG_MORE_TIME), the position is somehow reset by the system, so we
          // need to reselect the temporary item (even if it was already selected).
          // This is merely a workaround as I can't find a better solution.
          if(visibility == VISIBLE) {
              reselectTemporaryItem = false;
              PickerSpinnerAdapter adapter = (PickerSpinnerAdapter) getAdapter();
              int count = adapter.getCount();
              // check whether we have the temporary item selected
              if(getSelectedItemPosition() == count) {
                  // get the temp item from the adapter to reselect it later:
                  TwinTextItem tempItem = null;
                  try {
                      tempItem = adapter.getItem(count);
                  } catch (IndexOutOfBoundsException e) {
                      Log.d("PickerSpinner", "SetVisibility: Couldn't get temporary item from adapter, aborting workaround");
                  }
                  // now reselect the temporary item
                  if(tempItem != null) {
                      selectTemporary(tempItem);
                  }
              }
          }
  
      }
docs: {@inheritDoc}