Skip to content

Commit

Permalink
Properly set Wi-Fi Privacy spinner initial state
Browse files Browse the repository at this point in the history
In the Wi-Fi configuration dialog, properly set the initial value for
the MAC address randomization privacy spinner.

Bug: 279001779
Change-Id: I14f444429a4f4534f361dd25d032c2bae5b662fb
  • Loading branch information
t-m-w authored and basamaryan committed Jul 18, 2023
1 parent a5b7308 commit 52b45d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/android/settings/wifi/WifiConfigController2.java
Expand Up @@ -315,7 +315,7 @@ private void initWifiConfigController2(WifiEntry wifiEntry, int mode) {
: NOT_HIDDEN_NETWORK);

final int prefMacValue = WifiPrivacyPreferenceController2
.translateMacRandomizedValueToPrefValue(config.macRandomizationSetting);
.translateMacRandomizedValueToPrefValue(mWifiEntry.getPrivacy());
mPrivacySettingsSpinner.setSelection(prefMacValue);

if (config.getIpConfiguration().getIpAssignment() == IpAssignment.STATIC) {
Expand Down

0 comments on commit 52b45d8

Please sign in to comment.