[Passpointv2] Provide two views for saved networks

List all passpoint network under "Subscriptions" view and others under
"Wi-Fi networks".

Bug: 116362877
Test: hard code verify subscribed network
Change-Id: I9750e9964e8b5affc2e91ea86a058c3ba65b3588
This commit is contained in:
clownshen
2019-02-21 17:54:09 +08:00
committed by Clown SHEN
parent 4b01c8468c
commit 0a7e2c0383
9 changed files with 422 additions and 6 deletions

View File

@@ -2266,6 +2266,10 @@
<!-- Wifi saved access points. Used as a label under the shortcut icon that goes to Wifi saved access points. [CHAR LIMIT=20] -->
<string name="wifi_saved_access_points_label">Saved networks</string>
<!-- Tab title for showing subscribed WiFi access points. [CHAR LIMIT=20] -->
<string name="wifi_subscribed_access_points_tab">Subscriptions</string>
<!-- Tab title for showing saved WiFi access points. -->
<string name="wifi_saved_access_points_tab">@string/wifi_access_points</string>
<!-- Wifi Advanced settings. Used as a label under the shortcut icon that goes to Wifi advanced settings. [CHAR LIMIT=20] -->
<string name="wifi_advanced_settings_label">IP settings</string>
<!-- Error message for users that aren't allowed to see or modify WiFi advanced settings [CHAR LIMIT=NONE] -->

View File

@@ -20,9 +20,14 @@
android:key="saved_access_points"
android:title="@string/wifi_saved_access_points_label">
<PreferenceCategory
android:key="subscribed_access_points_category"
android:title="@string/wifi_subscribed_access_points_tab"
settings:controller="com.android.settings.wifi.savedaccesspoints.SubscribedAccessPointsPreferenceController"/>
<PreferenceCategory
android:key="saved_access_points_category"
android:layout="@layout/preference_category_no_label"
android:title="@string/wifi_saved_access_points_tab"
settings:controller="com.android.settings.wifi.savedaccesspoints.SavedAccessPointsPreferenceController"/>
</PreferenceScreen>