Lines Matching refs:preference
20 import android.preference.CheckBoxPreference;
21 import android.preference.Preference;
22 import android.preference.PreferenceGroup;
23 import android.preference.SwitchPreference;
46 final ArrayList<Preference> preferences = new ArrayList<>();
53 final Preference preference = preferences.get(index);
54 if (preference instanceof CheckBoxPreference) {
55 addSwitchPreferenceBasedOnCheckBoxPreference((CheckBoxPreference)preference, group);
57 group.addPreference(preference);
58 if (preference instanceof PreferenceGroup) {
59 replaceAllCheckBoxPreferencesBySwitchPreferences((PreferenceGroup)preference);