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

Commit 694bb767 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "invalidate if the colormode changes" into main

parents c12e4bcb 70cf6287
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1810,6 +1810,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;
            }
@@ -5566,6 +5569,7 @@ public final class ViewRootImpl implements ViewParent,
        if (desiredRatio != mDesiredHdrSdrRatio) {
            mDesiredHdrSdrRatio = desiredRatio;
            updateRenderHdrSdrRatio();
            invalidate();

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