@Override protected void onSetInitialValue(boolean restorePersistedValue, Object defaultValue) { super.onSetInitialValue(restorePersistedValue, defaultValue); final int index = getValueIndex(); if (index > -1) { setValueIndex(index); } }