Update UI for Wifi Direct settings

- Change the launching preference from using an intent to directly a
fragemnt
- Partially convert WifiP2pSettings to a DashboardFragment
- Add a controller to control each pref category, when they have no
child, hide.
- Add a controller to control device's own AP name.

Change-Id: I23685c4d4a85f80ceab5a576005e693e6f8b7cc4
Fix: 36859626
Test: make RunSettingsRoboTests
This commit is contained in:
Fan Zhang
2017-04-25 16:19:07 -07:00
parent bd3cbf44ac
commit 022ef86f1a
12 changed files with 448 additions and 79 deletions

View File

@@ -15,5 +15,13 @@
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<Preference
android:key="p2p_this_device"
android:selectable="false" />
<PreferenceCategory
android:key="p2p_peer_devices"
android:title="@string/wifi_p2p_peer_devices" />
<PreferenceCategory
android:key="p2p_persistent_group"
android:title="@string/wifi_p2p_remembered_groups" />
</PreferenceScreen>