[MAC Randomization] Align feature flag to global flag as framework

Removed feature flag and change to check global flag as framework MAC
randomization api does.

Bug: 127817791
Test: atest WifiPrivacyPreferenceControllerTest
Change-Id: I6d5f67d45c9bdbfb47cddfc402d13627dc5a8a6e
This commit is contained in:
cosmohsieh
2019-03-08 13:38:27 +08:00
parent 457f9a6ee8
commit fb6b71e2d3
3 changed files with 5 additions and 5 deletions

View File

@@ -58,8 +58,9 @@ public class WifiPrivacyPreferenceController extends BasePreferenceController im
@Override
public int getAvailabilityStatus() {
return FeatureFlagUtils.isEnabled(mContext, FeatureFlags.WIFI_MAC_RANDOMIZATION)
? AVAILABLE : CONDITIONALLY_UNAVAILABLE;
return mContext.getResources().getBoolean(
com.android.internal.R.bool.config_wifi_p2p_mac_randomization_supported) ?
AVAILABLE : CONDITIONALLY_UNAVAILABLE;
}
@Override