Merge "[Catalyst] Rollback the Adaptive brightness key" into main

This commit is contained in:
Treehugger Robot
2025-01-17 06:31:32 -08:00
committed by Android (Google) Code Review
3 changed files with 29 additions and 9 deletions

View File

@@ -128,7 +128,11 @@ class AutoBrightnessScreenTest {
}
private fun setScreenBrightnessMode(value: Int) =
Settings.System.putInt(context.contentResolver, AutoBrightnessScreen.KEY, value)
Settings.System.putInt(
context.contentResolver,
Settings.System.SCREEN_BRIGHTNESS_MODE,
value,
)
private fun getResId() =
when {