Merge "Show dialog when user tries to edit a locked down WiFi config"

This commit is contained in:
Zoltan Szatmary-Ban
2015-04-22 10:10:32 +00:00
committed by Android (Google) Code Review
5 changed files with 93 additions and 3 deletions

View File

@@ -156,8 +156,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;
}