439440441442443444445446447448449
Preference pref = prefs.addPreference(p.name); if (p.value != null) { for (String value : p.value) { pref.addValue(value); } } if (p.readOnly != null) { pref.setReadOnly(p.readOnly.booleanValue());