[Wi-Fi] Support WiFi detail page for OpenRoaming feature in AOSP setting.
Issue: Openroaming should have a specific detail page. Solution: Apply the mock design to only reserve two preference items: 1.Auto-connect 2.Scription details Bug: 146669261 Test: Add unit test case to test the new controller: WifiSubscriptionDetailPreferenceController2 Change-Id: Iba96500062f412f4cdcd1c8248544657770ab231
This commit is contained in:
@@ -51,11 +51,11 @@ public class AddDevicePreferenceController2 extends BasePreferenceController {
|
||||
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
if (WifiDppUtils.isSupportConfiguratorQrCodeScanner(mContext, mWifiEntry)) {
|
||||
return AVAILABLE;
|
||||
} else {
|
||||
if (!WifiDppUtils.isSupportConfiguratorQrCodeScanner(mContext, mWifiEntry)
|
||||
|| mWifiEntry.canManageSubscription()) {
|
||||
return CONDITIONALLY_UNAVAILABLE;
|
||||
}
|
||||
return AVAILABLE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user