diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2022-04-04 06:38:55 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2022-04-04 06:38:55 -0700 |
commit | 4dda4791465a5b41670ea64dfd78fccfb9bec89e (patch) | |
tree | 1032ffb321fc3e1343f5a7a1c082c921343b8fbb /src/com/android/customization/model/mode/DarkModeSectionController.java | |
parent | 5b6c39e532730854324426ac543c03f0dae7a7b5 (diff) | |
parent | 66234e84c45e4b09608b2a8c425a07fcd2ae913c (diff) |
Merge 66234e84c45e4b09608b2a8c425a07fcd2ae913c on remote branch
Change-Id: I144db572a572f51717b4138557023225605031d0
Diffstat (limited to 'src/com/android/customization/model/mode/DarkModeSectionController.java')
-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); } |