Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70cf6287 authored by John Reck's avatar John Reck
Browse files

invalidate if the colormode changes

Bug: 294134660
Test: setColorMode() in a postDelayed; apk in bug
Change-Id: Ib79551f05e58366e6ab988ac23c929f0b246b0b7
parent 7f7a3e1d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1807,6 +1807,9 @@ public final class ViewRootImpl implements ViewParent,
                // Request to update light center.
                mAttachInfo.mNeedsUpdateLightCenter = true;
            }
            if ((changes & WindowManager.LayoutParams.COLOR_MODE_CHANGED) != 0) {
                invalidate();
            }
            if (mWindowAttributes.packageName == null) {
                mWindowAttributes.packageName = mBasePackageName;
            }
@@ -5512,6 +5515,7 @@ public final class ViewRootImpl implements ViewParent,
        if (desiredRatio != mDesiredHdrSdrRatio) {
            mDesiredHdrSdrRatio = desiredRatio;
            updateRenderHdrSdrRatio();
            invalidate();

            if (mDesiredHdrSdrRatio < 1.01f) {
                mDisplay.unregisterHdrSdrRatioChangedListener(mHdrSdrRatioChangedListener);