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 mikeNG committed Oct 25, 2024
1 parent 75b993a commit 7410e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/android/settings/wifi/WifiConfigController2.java
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ private void initWifiConfigController2(WifiEntry wifiEntry) {

if (mPrivacySettingsSpinner != null) {
final int prefMacValue = WifiPrivacyPreferenceController2
.translateMacRandomizedValueToPrefValue(config.macRandomizationSetting);
.translateMacRandomizedValueToPrefValue(mWifiEntry.getPrivacy());
mPrivacySettingsSpinner.setSelection(prefMacValue);
}

Expand Down

0 comments on commit 7410e87

Please sign in to comment.