diff options
author | alk3pInjection <webmaster@raspii.tech> | 2022-05-01 21:55:20 +0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2022-05-01 21:55:20 +0800 |
commit | 2ea03486c86a7023830b31edfb87ee41994e59e0 (patch) | |
tree | 9792282834a6dd1e678dcfb12a2c8cc9b9d13bb7 /src/com/android/customization/model/mode | |
parent | 1e4602e4f6b26df738ec65555489c22e5e15752b (diff) | |
parent | 4dda4791465a5b41670ea64dfd78fccfb9bec89e (diff) |
Merge tag 'LA.QSSI.12.0.r1-06800-qssi.0' into sugisawa-mr1HEADsugisawa-mr1
"LA.QSSI.12.0.r1-06800-qssi.0"
Change-Id: Ib7b70941f6b07e137eed7d3318e2744f91e8002b
Diffstat (limited to 'src/com/android/customization/model/mode')
-rw-r--r-- | src/com/android/customization/model/mode/DarkModeSectionController.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/customization/model/mode/DarkModeSectionController.java b/src/com/android/customization/model/mode/DarkModeSectionController.java index 382162ea..f56b7092 100644 --- a/src/com/android/customization/model/mode/DarkModeSectionController.java +++ b/src/com/android/customization/model/mode/DarkModeSectionController.java @@ -128,7 +128,11 @@ public class DarkModeSectionController implements UiModeManager uiModeManager = context.getSystemService(UiModeManager.class); int shortDelay = context.getResources().getInteger(android.R.integer.config_shortAnimTime); new Handler(Looper.getMainLooper()).postDelayed( - () -> uiModeManager.setNightModeActivated(viewActivated), + () -> { + mDarkModeSectionView.announceForAccessibility( + context.getString(R.string.mode_changed)); + uiModeManager.setNightModeActivated(viewActivated); + }, /* delayMillis= */ shortDelay); } |