WallpaperTypeSettings use DashboardFragment

- Build a controller to generate/manage a list of preferences.
- Move some logics to the controller and add tests.

Bug: 73899467
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.wallpaper
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.core
Test: atest SettingsGatewayTest UniquePreferenceTest
Change-Id: I519a76ff34bcd4195b0ad6ad406a8f66371923d2
This commit is contained in:
Mill Chen
2018-04-12 13:53:22 +00:00
committed by Fan Zhang
parent 5e3718d354
commit f4b328e723
5 changed files with 237 additions and 113 deletions

View File

@@ -14,7 +14,10 @@
limitations under the License.
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="@string/wallpaper_settings_fragment_title">
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:settings="http://schemas.android.com/apk/res-auto"
android:key="wallpaper_type"
android:title="@string/wallpaper_settings_fragment_title"
settings:controller="com.android.settings.wallpaper.WallpaperTypePreferenceController">
</PreferenceScreen>