Merge "Add Enterprise restriction check for Wi-Fi QR code sharing"

This commit is contained in:
Betty Chang
2022-01-07 01:51:56 +00:00
committed by Android (Google) Code Review
2 changed files with 52 additions and 1 deletions

View File

@@ -566,7 +566,9 @@ public class NetworkProviderSettings extends RestrictedSettingsFragment
}
if (mSelectedWifiEntry.canDisconnect()) {
menu.add(Menu.NONE, MENU_ID_SHARE, 0 /* order */, R.string.share);
if (mSelectedWifiEntry.canShare()) {
menu.add(Menu.NONE, MENU_ID_SHARE, 0 /* order */, R.string.share);
}
menu.add(Menu.NONE, MENU_ID_DISCONNECT, 1 /* order */,
R.string.wifi_disconnect_button_text);
}