[Catalyst] Rollback the Adaptive brightness key

Let the redirect highlight function work from Turbo app.

NO_IFTTT=Catalyst migration

Test: devtool, atest AutoBrightnessScreenTest
Bug: 390525596
Flag: com.android.settings.flags.catalyst_display_settings_screen
Change-Id: Id7261d8a51368c45b7e23fee911565a226b30779
This commit is contained in:
Sunny Shao
2025-01-17 06:16:32 +00:00
parent 1ac39a1547
commit 03de6af4fc
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 {