Skip to content

Instantly share code, notes, and snippets.

Created Dec 10, 2017
What would you like to do?
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
Preference preference = findPreference(key);
if (!(preference instanceof CheckBoxPreference)) {
String value = sharedPreferences.getString(preference.getKey(), "");
setPreferenceSummary(preference, value);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment