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

Change-Id: Ie4c5d8a434b4489355ed8c52af96eb931b4d7167
This commit is contained in:
Mathias Agopian 2010-09-21 10:52:42 -07:00
parent 91f13923ee
commit e44d21a247
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}