fix [3018216] UI shrinks / stretches while using apps with IME
Change-Id: Ie4c5d8a434b4489355ed8c52af96eb931b4d7167
This commit is contained in:
parent
91f13923ee
commit
e44d21a247
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue