Gate dhcp hostname setting behind Wifi V API flag
DCHP hostname setting should only be shown if the feature flag for Wifi V API is enabled. Bug: 341981620 Test: manual Change-Id: Iee3740db2513c7071c14361513f7e51199245af0
This commit is contained in:
committed by
Quang Luong
parent
1df39c3d5f
commit
dda3dd56cb
@@ -311,7 +311,9 @@ public class WifiConfigController2 implements TextWatcher,
|
|||||||
mHiddenSettingsSpinner = mView.findViewById(R.id.hidden_settings);
|
mHiddenSettingsSpinner = mView.findViewById(R.id.hidden_settings);
|
||||||
if (!mHideMeteredAndPrivacy && mWifiManager.isConnectedMacRandomizationSupported()) {
|
if (!mHideMeteredAndPrivacy && mWifiManager.isConnectedMacRandomizationSupported()) {
|
||||||
mPrivacySettingsSpinner = mView.findViewById(R.id.privacy_settings);
|
mPrivacySettingsSpinner = mView.findViewById(R.id.privacy_settings);
|
||||||
mDhcpSettingsSpinner = mView.findViewById(R.id.dhcp_settings);
|
if (Flags.androidVWifiApi()) {
|
||||||
|
mDhcpSettingsSpinner = mView.findViewById(R.id.dhcp_settings);
|
||||||
|
}
|
||||||
mView.findViewById(R.id.privacy_settings_fields).setVisibility(View.VISIBLE);
|
mView.findViewById(R.id.privacy_settings_fields).setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
mHiddenSettingsSpinner.setOnItemSelectedListener(this);
|
mHiddenSettingsSpinner.setOnItemSelectedListener(this);
|
||||||
|
Reference in New Issue
Block a user