diff options
| author | Mathias Agopian <mathias@google.com> | 2010-09-21 10:52:42 -0700 |
|---|---|---|
| committer | Mathias Agopian <mathias@google.com> | 2010-09-21 10:52:42 -0700 |
| commit | 3dfe120e90f3161378b49b69fd7d211733e65d5b (patch) | |
| tree | 965125c3c4e503566e5de304650e560952b85c12 /services/surfaceflinger/Layer.cpp | |
| parent | d7b871419e09c497ed98a49fd0d7ab9376b2a0d5 (diff) | |
| download | frameworks_base-3dfe120e90f3161378b49b69fd7d211733e65d5b.zip frameworks_base-3dfe120e90f3161378b49b69fd7d211733e65d5b.tar.gz frameworks_base-3dfe120e90f3161378b49b69fd7d211733e65d5b.tar.bz2 | |
fix [3018216] UI shrinks / stretches while using apps with IME
Change-Id: Ie4c5d8a434b4489355ed8c52af96eb931b4d7167
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
| -rw-r--r-- | services/surfaceflinger/Layer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index 833181b..1b21a8d 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -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); } |
