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

Commit b56ff734 authored by Chih-Chung Chang's avatar Chih-Chung Chang
Browse files

Fix black screen when viewing Gmail image file attachment.

Bug: 6415848

Change-Id: Iec369866be6b5546fbd8cb77eb95a29f92e00b84
parent b1e9fd89
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1012,7 +1012,8 @@ class PositionController {
        float hFactor = 1.0f;
        int viewW, viewH;

        if (!mFilmMode && mConstrained && b == mBoxes.get(0)) {
        if (!mFilmMode && mConstrained && !mConstrainedFrame.isEmpty()
                && b == mBoxes.get(0)) {
            viewW = mConstrainedFrame.width();
            viewH = mConstrainedFrame.height();
        } else {