Add toggle for auto brightness feature

- Use the primary toggle preference.
- Remove the empty subtext.

Test: See toggle preference on auto brightness feature
Bug: 174964139
Change-Id: Ic5105730c7a2075d61cdde42395e41712bb468a7
This commit is contained in:
Tsung-Mao Fang
2021-01-07 15:06:30 +08:00
parent cfedc19ab9
commit d159567fc4
2 changed files with 4 additions and 3 deletions

View File

@@ -12577,4 +12577,6 @@
<string name="category_name_color">Color</string>
<!-- Others category name [CHAR LIMIT=none] -->
<string name="category_name_others">Others</string>
<!-- General category name [CHAR LIMIT=none] -->
<string name="category_name_general">General</string>
</resources>

View File

@@ -33,10 +33,9 @@
<intent android:action="com.android.intent.action.SHOW_BRIGHTNESS_DIALOG"/>
</com.android.settingslib.RestrictedPreference>
<Preference
<com.android.settings.widget.PrimarySwitchPreference
android:key="auto_brightness_entry"
android:title="@string/auto_brightness_title"
android:summary="@string/summary_placeholder"
android:fragment="com.android.settings.display.AutoBrightnessSettings"
settings:controller="com.android.settings.display.AutoBrightnessPreferenceController"/>
</PreferenceCategory>
@@ -103,7 +102,7 @@
</PreferenceCategory>
<PreferenceCategory
android:title="@string/category_name_others">
android:title="@string/category_name_general">
<SwitchPreference
android:key="auto_rotate"