use of net.osmand.plus.settings.backend.preferences.BooleanAccessibilityPreference in project Osmand by osmandapp.
the class OsmandSettings method registerBooleanAccessibilityPreference.
@SuppressWarnings("unchecked")
public CommonPreference<Boolean> registerBooleanAccessibilityPreference(String id, boolean defValue) {
if (registeredPreferences.containsKey(id)) {
return (CommonPreference<Boolean>) registeredPreferences.get(id);
}
BooleanPreference p = new BooleanAccessibilityPreference(this, id, defValue);
registeredPreferences.put(id, p);
return p;
}
Aggregations