Searched refs:restoreValue (Results 1 – 3 of 3) sorted by relevance
227 final Object restoreValue = getRestoreValue(key, value); in restorePreferences() local229 if (restoreValue instanceof Boolean) { in restorePreferences()230 getEditor().putBoolean(key, (Boolean) restoreValue); in restorePreferences()232 } else if (restoreValue instanceof Float) { in restorePreferences()233 getEditor().putFloat(key, (Float) restoreValue); in restorePreferences()235 } else if (restoreValue instanceof Integer) { in restorePreferences()236 getEditor().putInt(key, (Integer) restoreValue); in restorePreferences()238 } else if (restoreValue instanceof Long) { in restorePreferences()239 getEditor().putLong(key, (Long) restoreValue); in restorePreferences()241 } else if (restoreValue instanceof String) { in restorePreferences()[all …]
227 protected void onSetInitialValue(boolean restoreValue, Object defaultValue) { in onSetInitialValue() argument228 setValue(restoreValue ? getPersistedInt(mValue) : (Integer) defaultValue); in onSetInitialValue()
389 protected void onSetInitialValue(boolean restoreValue, Object defaultValue) { in onSetInitialValue() argument390 setValueFromString(restoreValue ? getPersistedString(getStringValue()) in onSetInitialValue()