Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created Dec 10, 2017
Embed
What would you like to do?
@Override
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