Reflect Wifi config lockdown restriction in Settings
DO created WiFi configurations are now only locked down for editing/removing if DISALLOW_CONFIG_WIFI is not set. This needed to be reflected on Settings UI. Bug: 20719934 Change-Id: Ibd218821ab46cca8396084e2d73ae5ee00b584b3
This commit is contained in:
@@ -158,7 +158,7 @@ public class SavedAccessPointsWifiSettings extends SettingsPreferenceFragment
|
||||
mSelectedAccessPoint = mDlgAccessPoint;
|
||||
|
||||
// Hide forget button if config editing is locked down
|
||||
final boolean hideForgetButton = WifiSettings.isCreatorDeviceOwner(getActivity(),
|
||||
final boolean hideForgetButton = WifiSettings.isEditabilityLockedDown(getActivity(),
|
||||
mDlgAccessPoint.getConfig());
|
||||
mDialog = new WifiDialog(getActivity(), this, mDlgAccessPoint,
|
||||
false /* not editting */, true /* hide the submit button */,
|
||||
|
Reference in New Issue
Block a user