[Wi-Fi] Apply new mock for supporting WiFi detail page for OpenRoaming feature.

Issue: Openroaming detail page have new UI Mock.
Solution: Apply the mock design to rollback previous UI and add one Subcription preference.

Bug: 146669261
Test: manually push API and check.
Change-Id: Ie3243c9bcd371db1909834ef257c741454abec11
This commit is contained in:
govenliu
2020-02-24 15:31:34 +08:00
parent 34fdec2668
commit 7d8d8d3400
8 changed files with 24 additions and 69 deletions

View File

@@ -55,11 +55,8 @@ public class WifiPrivacyPreferenceController2 extends BasePreferenceController i
@Override
public int getAvailabilityStatus() {
if (!mWifiManager.isConnectedMacRandomizationSupported()
|| mWifiEntry.canManageSubscription()) {
return CONDITIONALLY_UNAVAILABLE;
}
return AVAILABLE;
return mWifiManager.isConnectedMacRandomizationSupported()
? AVAILABLE : CONDITIONALLY_UNAVAILABLE;
}
@Override