From 11e63152db20d5b02db4c18be1eeb17fc22af6f4 Mon Sep 17 00:00:00 2001 From: Christine Franks Date: Thu, 14 Mar 2019 11:16:06 -0700 Subject: [PATCH] Initialize a11y transforms when device is booted Bug: 127493649 Test: manual Change-Id: I931bcf6f6f4178ac6c66b7232b67318803016dae --- .../com/android/server/display/color/ColorDisplayService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/core/java/com/android/server/display/color/ColorDisplayService.java b/services/core/java/com/android/server/display/color/ColorDisplayService.java index 23117760f45f4..45567e5a34cbf 100644 --- a/services/core/java/com/android/server/display/color/ColorDisplayService.java +++ b/services/core/java/com/android/server/display/color/ColorDisplayService.java @@ -402,6 +402,10 @@ public final class ColorDisplayService extends SystemService { cr.registerContentObserver(Secure.getUriFor(Secure.DISPLAY_WHITE_BALANCE_ENABLED), false /* notifyForDescendants */, mContentObserver, mCurrentUser); + // Apply the accessibility settings first, since they override most other settings. + onAccessibilityInversionChanged(); + onAccessibilityDaltonizerChanged(); + // Set the color mode, if valid, and immediately apply the updated tint matrix based on the // existing activated state. This ensures consistency of tint across the color mode change. onDisplayColorModeChanged(getColorModeInternal());