[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

@@ -51,11 +51,8 @@ public class AddDevicePreferenceController2 extends BasePreferenceController {
@Override
public int getAvailabilityStatus() {
if (!WifiDppUtils.isSupportConfiguratorQrCodeScanner(mContext, mWifiEntry)
|| mWifiEntry.canManageSubscription()) {
return CONDITIONALLY_UNAVAILABLE;
}
return AVAILABLE;
return WifiDppUtils.isSupportConfiguratorQrCodeScanner(mContext, mWifiEntry) ? AVAILABLE
: CONDITIONALLY_UNAVAILABLE;
}
@Override