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:
Sudheer Shanka
2016-03-17 15:35:15 -07:00
parent 7c802419fd
commit e2b2c3ffe4
4 changed files with 14 additions and 41 deletions

View File

@@ -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;
}