Search in sources :

Example 1 with BooleanAccessibilityPreference

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;
}
Also used : BooleanPreference(net.osmand.plus.settings.backend.preferences.BooleanPreference) CommonPreference(net.osmand.plus.settings.backend.preferences.CommonPreference) BooleanAccessibilityPreference(net.osmand.plus.settings.backend.preferences.BooleanAccessibilityPreference)

Aggregations

BooleanAccessibilityPreference (net.osmand.plus.settings.backend.preferences.BooleanAccessibilityPreference)1 BooleanPreference (net.osmand.plus.settings.backend.preferences.BooleanPreference)1 CommonPreference (net.osmand.plus.settings.backend.preferences.CommonPreference)1