feat(brightness suw): add brightness preferences in suw
Add brightness level and auto brightness preference in
accessibility_settings_for_setup_wizard.xml. Since the flagging has not
be supported yet for non-Manifest resources, for now we add the
preferences by default, and update the preferece availablity status in
each preference controllers based on the flag.
Bug: 311093618
Flag: ACONFIG com.android.settings.accessibility.add_brightness_settings_in_suw DEVELOPMENT
Test: manually
atest AccessibilitySettingsForSetupWizardTest
atest AutoBrightnessPreferenceFragmentForSetupWizardTest
atest AutoBrightnessPreferenceControllerTest
atest BrightnessLevelPreferenceControllerTest
Change-Id: I350d99138bdd14bf28828a39e42f707b5b1066c1
This commit is contained in:
@@ -2730,6 +2730,10 @@
|
||||
<!-- Display settings screen, Color mode option for "Adaptive color" [CHAR LIMIT=45] -->
|
||||
<string name="color_mode_option_automatic">Adaptive</string>
|
||||
|
||||
<!-- Key for the brightness level preference -->
|
||||
<string name="preference_key_brightness_level" translatable="false">brightness</string>
|
||||
<!-- Key for the auto brightness preference -->
|
||||
<string name="preference_key_auto_brightness" translatable="false">auto_brightness_entry</string>
|
||||
<!-- Sound & display settings screen, setting option name to change brightness level -->
|
||||
<string name="brightness">Brightness level</string>
|
||||
<!-- Sound & display settings screen, setting option name to enable adaptive brightness [CHAR LIMIT=30] -->
|
||||
|
||||
Reference in New Issue
Block a user