mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 06:49:56 +00:00
Fix preference input and persistence for a set of values
This commit is contained in:
1 parent
c72292fe33
commit
bbbd43e14b
3 files changed
+6
-2
No files matched your search
@@ -17,7 +17,7 @@
|
||||
android:layout_weight="1"
|
||||
android:completionThreshold="1"
|
||||
android:hint="@string/enter_new_item"
|
||||
android:inputType="textNoSuggestions|textVisiblePassword" />
|
||||
android:inputType="textCapWords|textNoSuggestions" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/edit_set_preference_add"
|
||||
|
||||
-1
@@ -96,7 +96,6 @@ public class EditSetPreferenceDialogFragmentCompat extends PreferenceDialogFragm
|
||||
&& preference.callChangeListener(values)) {
|
||||
ExLog.i(getContext(), TAG, "Storing result...");
|
||||
preference.persistStringSet(values);
|
||||
currentValues = values;
|
||||
}
|
||||
}
|
||||
}
|
||||
+5
@@ -77,4 +77,9 @@ public class EditSetPreference extends DialogPreference {
|
||||
return value == null ? null : new HashSet<>(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean persistStringSet(Set<String> values) {
|
||||
currentValues = values;
|
||||
return super.persistStringSet(values);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user