notify preference change listeners
This commit is contained in:
parent
ddd18dc8d5
commit
b4749e3e91
@ -116,6 +116,7 @@ public abstract class AbstractDialogPreference<T> extends DialogPreference {
|
|||||||
|
|
||||||
protected abstract void initPreferenceView();
|
protected abstract void initPreferenceView();
|
||||||
|
|
||||||
|
@Nullable
|
||||||
private T getPersistedValue() {
|
private T getPersistedValue() {
|
||||||
String persistedString = getPersistedString(defaultStringValue);
|
String persistedString = getPersistedString(defaultStringValue);
|
||||||
if ( persistedString == defaultStringValue ) {
|
if ( persistedString == defaultStringValue ) {
|
||||||
@ -137,6 +138,7 @@ public abstract class AbstractDialogPreference<T> extends DialogPreference {
|
|||||||
final String toBePersistedString = getMapper().formatValue(value);
|
final String toBePersistedString = getMapper().formatValue(value);
|
||||||
if (toBePersistedString != null) {
|
if (toBePersistedString != null) {
|
||||||
persistString(toBePersistedString);
|
persistString(toBePersistedString);
|
||||||
|
callChangeListener(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user