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

Commit b043595d authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix crash issue when gallery app with Ultra HDR photo is moved to the...

Merge "Fix crash issue when gallery app with Ultra HDR photo is moved to the virtual display." into main
parents bb8f3fb6 cab01609
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2191,7 +2191,8 @@ public final class ViewRootImpl implements ViewParent,
        } else {
            mDisplay = preferredDisplay;
        }
        if (mHdrSdrRatioChangedListener != null && mDisplay != null) {
        if (mHdrSdrRatioChangedListener != null && mDisplay != null
                && mDisplay.isHdrSdrRatioAvailable()) {
            mDisplay.registerHdrSdrRatioChangedListener(mExecutor, mHdrSdrRatioChangedListener);
        }
        mContext.updateDisplay(mDisplay.getDisplayId());