Initialize a11y transforms when device is booted

Bug: 127493649
Test: manual
Change-Id: I931bcf6f6f4178ac6c66b7232b67318803016dae
This commit is contained in:
Christine Franks
2019-03-14 11:16:06 -07:00
parent a029aa8e6d
commit 11e63152db

View File

@@ -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());