Disable Mac randomization setting for Passpoint networks

Mac randomization setting should be greyed out in the network
details page for Passpoint networks.

Bug: 129279500
Test: atest WifiPrivacyPreferenceControllerTest
Change-Id: I4fc89ddbca839c4859f11f8fad212b3e0e4aa7ce
This commit is contained in:
Quang Luong
2019-03-27 15:28:34 -07:00
parent 533d8b6b9d
commit d832dcc7c5
3 changed files with 24 additions and 1 deletions

View File

@@ -140,6 +140,8 @@ public class WifiNetworkDetailsFragment extends DashboardFragment {
context);
privacyController.setWifiConfiguration(mAccessPoint.getConfig());
privacyController.setIsEphemeral(mAccessPoint.isEphemeral());
privacyController.setIsPasspoint(
mAccessPoint.isPasspoint() || mAccessPoint.isPasspointConfig());
controllers.add(privacyController);
return controllers;