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

Commit e44d21a2 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

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

Change-Id: Ie4c5d8a434b4489355ed8c52af96eb931b4d7167
parent 91f13923
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);
        }