Add restricted padlock support for listpreference.
Change-Id: I1f3284a474d225df803abd57dd71382cb1dfa659
This commit is contained in:
@@ -476,7 +476,10 @@ public abstract class SettingsPreferenceFragment extends InstrumentedPreferenceF
|
||||
preference.setKey(UUID.randomUUID().toString());
|
||||
}
|
||||
DialogFragment f = null;
|
||||
if (preference instanceof CustomListPreference) {
|
||||
if (preference instanceof RestrictedListPreference) {
|
||||
f = RestrictedListPreference.RestrictedListPreferenceDialogFragment
|
||||
.newInstance(preference.getKey());
|
||||
} else if (preference instanceof CustomListPreference) {
|
||||
f = CustomListPreference.CustomListPreferenceDialogFragment
|
||||
.newInstance(preference.getKey());
|
||||
} else if (preference instanceof CustomDialogPreference) {
|
||||
|
||||
Reference in New Issue
Block a user