Show dialog when user tries to edit a locked down WiFi config
Also, 'FORGET' button is not shown on WifiDialogs of locked down configs. Context menu only shows 'Connect' for them. Bug: 20117316 Change-Id: I3fa986c10b6ff47d1a897794213c225c8c6f579b
This commit is contained in:
@@ -128,8 +128,13 @@ public class SavedAccessPointsWifiSettings extends SettingsPreferenceFragment
|
||||
mAccessPointSavedState = null;
|
||||
}
|
||||
mSelectedAccessPoint = mDlgAccessPoint;
|
||||
|
||||
// Hide forget button if config editing is locked down
|
||||
final boolean hideForgetButton = WifiSettings.isCreatorDeviceOwner(getActivity(),
|
||||
mDlgAccessPoint.getConfig());
|
||||
mDialog = new WifiDialog(getActivity(), this, mDlgAccessPoint,
|
||||
false /* not editting */, true /* hide the submit button */);
|
||||
false /* not editting */, true /* hide the submit button */,
|
||||
hideForgetButton);
|
||||
return mDialog;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user