Add more policy transparency for wifi settings.
Show policy transparency dialog if user tries to modify a wifi configuration locked by device owner. Bug: 27375948 Change-Id: I504082282f57bc5de9f097e962d195ecd2cc9da4
This commit is contained in:
@@ -143,12 +143,8 @@ public class SavedAccessPointsWifiSettings extends SettingsPreferenceFragment
|
||||
}
|
||||
mSelectedAccessPoint = mDlgAccessPoint;
|
||||
|
||||
// Hide forget button if config editing is locked down
|
||||
final boolean hideForgetButton = WifiSettings.isEditabilityLockedDown(getActivity(),
|
||||
mDlgAccessPoint.getConfig());
|
||||
mDialog = new WifiDialog(getActivity(), this, mDlgAccessPoint,
|
||||
WifiConfigUiBase.MODE_VIEW, true /* hide the submit button */,
|
||||
hideForgetButton);
|
||||
WifiConfigUiBase.MODE_VIEW, true /* hide the submit button */);
|
||||
return mDialog;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user