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

Commit 86372461 authored by Mathias Agopian's avatar Mathias Agopian Committed by Android (Google) Code Review
Browse files

Merge "fix [3018216] UI shrinks / stretches while using apps with IME"

parents b34c14db e44d21a2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -367,6 +367,7 @@ sp<GraphicBuffer> Layer::requestBuffer(int index,
        Mutex::Autolock _l(mLock);

        // zero means default
        const bool fixedSize = reqWidth && reqHeight;
        if (!reqFormat) reqFormat = mFormat;
        if (!reqWidth)  reqWidth = mWidth;
        if (!reqHeight) reqHeight = mHeight;
@@ -380,7 +381,7 @@ sp<GraphicBuffer> Layer::requestBuffer(int index,
            mReqWidth  = reqWidth;
            mReqHeight = reqHeight;
            mReqFormat = reqFormat;
            mFixedSize = reqWidth && reqHeight;
            mFixedSize = fixedSize;

            lcblk->reallocateAllExcept(index);
        }