Change feature flag to correct flag
Sorry, I provided the wrong flag that was supposed to be fore p2p MAC randomization. Changing to the correct flag now. Bug: 127817791 Test: compile Change-Id: I46828e17411372c5e347b4fd17d853fe95f024a4
This commit is contained in:
@@ -249,7 +249,7 @@ public class WifiConfigController implements TextWatcher,
|
|||||||
mHiddenSettingsSpinner = mView.findViewById(R.id.hidden_settings);
|
mHiddenSettingsSpinner = mView.findViewById(R.id.hidden_settings);
|
||||||
mPrivacySettingsSpinner = mView.findViewById(R.id.privacy_settings);
|
mPrivacySettingsSpinner = mView.findViewById(R.id.privacy_settings);
|
||||||
if (mContext.getResources().getBoolean(
|
if (mContext.getResources().getBoolean(
|
||||||
com.android.internal.R.bool.config_wifi_p2p_mac_randomization_supported)) {
|
com.android.internal.R.bool.config_wifi_connected_mac_randomization_supported)) {
|
||||||
View privacySettingsLayout = mView.findViewById(R.id.privacy_settings_fields);
|
View privacySettingsLayout = mView.findViewById(R.id.privacy_settings_fields);
|
||||||
privacySettingsLayout.setVisibility(View.VISIBLE);
|
privacySettingsLayout.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
@@ -59,7 +59,7 @@ public class WifiPrivacyPreferenceController extends BasePreferenceController im
|
|||||||
@Override
|
@Override
|
||||||
public int getAvailabilityStatus() {
|
public int getAvailabilityStatus() {
|
||||||
return mContext.getResources().getBoolean(
|
return mContext.getResources().getBoolean(
|
||||||
com.android.internal.R.bool.config_wifi_p2p_mac_randomization_supported) ?
|
com.android.internal.R.bool.config_wifi_connected_mac_randomization_supported) ?
|
||||||
AVAILABLE : CONDITIONALLY_UNAVAILABLE;
|
AVAILABLE : CONDITIONALLY_UNAVAILABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user