diff options
author | Amith Yamasani <yamasani@google.com> | 2013-04-16 15:39:47 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2013-04-16 15:39:47 -0700 |
commit | e11a346f1fe6adeb183e7dfb622ac6ab40016794 (patch) | |
tree | ea6795f92787a245ec2a4f35d17ff6daa46284b7 /src/com/android/settings/users/AppRestrictionsFragment.java | |
parent | 1a72d9c49b11355135af6807d316e473d7d2423e (diff) | |
download | packages_apps_Settings-e11a346f1fe6adeb183e7dfb622ac6ab40016794.tar.gz packages_apps_Settings-e11a346f1fe6adeb183e7dfb622ac6ab40016794.tar.bz2 packages_apps_Settings-e11a346f1fe6adeb183e7dfb622ac6ab40016794.zip |
Remove wifi/bt restrictions choice for limited users
Bug: 8631653
Make "Unknown sources" visible but disabled if restricted for limited user.
Bug: 8629605
Also show the restriction name as the dialog title in the picker.
Change-Id: I8d6ea3571bcc4372347cad6a2c982f35afa7cc09
Diffstat (limited to 'src/com/android/settings/users/AppRestrictionsFragment.java')
-rw-r--r-- | src/com/android/settings/users/AppRestrictionsFragment.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/settings/users/AppRestrictionsFragment.java b/src/com/android/settings/users/AppRestrictionsFragment.java index 4e6e5ded4..8b93417b2 100644 --- a/src/com/android/settings/users/AppRestrictionsFragment.java +++ b/src/com/android/settings/users/AppRestrictionsFragment.java @@ -682,6 +682,7 @@ public class AppRestrictionsFragment extends SettingsPreferenceFragment implemen ((ListPreference)p).setEntryValues(entry.getChoiceValues()); ((ListPreference)p).setEntries(entry.getChoiceEntries()); ((ListPreference)p).setValue(value); + ((ListPreference)p).setDialogTitle(entry.getTitle()); break; case RestrictionEntry.TYPE_MULTI_SELECT: p = new MultiSelectListPreference(context); @@ -693,6 +694,7 @@ public class AppRestrictionsFragment extends SettingsPreferenceFragment implemen set.add(s); } ((MultiSelectListPreference)p).setValues(set); + ((MultiSelectListPreference)p).setDialogTitle(entry.getTitle()); break; case RestrictionEntry.TYPE_NULL: default: |