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

Commit c683ddd7 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "invalidate if the colormode changes" into udc-qpr-dev

parents 7755ba0a f7655c87
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1808,6 +1808,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;
            }
@@ -5513,6 +5516,7 @@ public final class ViewRootImpl implements ViewParent,
        if (desiredRatio != mDesiredHdrSdrRatio) {
            mDesiredHdrSdrRatio = desiredRatio;
            updateRenderHdrSdrRatio();
            invalidate();

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