Update Adaptive brightness page.

- Use the IllustrationPreference widget and update the
  new illustration.

Fix: 192415034
Test: robotest and see the UI
Change-Id: I2feb3faab0abd2fa0fc36b8bb94f6b02ec3f7dd7
This commit is contained in:
Stanley Wang
2021-06-30 16:57:04 +08:00
parent 371f699681
commit 8f774b908f
2 changed files with 3 additions and 5 deletions

View File

View File

@@ -20,12 +20,10 @@
xmlns:settings="http://schemas.android.com/apk/res-auto"
android:title="@string/auto_brightness_title">
<com.android.settings.widget.VideoPreference
<com.android.settingslib.widget.IllustrationPreference
android:key="auto_brightness_video"
android:title="@string/summary_placeholder"
settings:animation="@raw/aab_brightness"
settings:preview="@drawable/aab_brightness"
settings:controller="com.android.settings.widget.VideoPreferenceController"/>
settings:searchable="false"
settings:lottie_rawRes="@raw/lottie_adaptive_brightness"/>
<com.android.settings.widget.SettingsMainSwitchPreference
android:key="auto_brightness"