Merge "Add toggle for auto brightness feature"

This commit is contained in:
TreeHugger Robot
2021-01-07 08:35:02 +00:00
committed by Android (Google) Code Review
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"