am 41039247: am 8abd5f0d: Fix issue #2267665 IME keyboard appears as Blank in compose view...

Merge commit '4103924742c376716ce5866f6d2f53eac4f3cb59' into eclair-mr2-plus-aosp

* commit '4103924742c376716ce5866f6d2f53eac4f3cb59':
  Fix issue #2267665 IME keyboard appears as Blank in compose view...
This commit is contained in:
Dianne Hackborn
2009-11-23 11:12:04 -08:00
committed by Android Git Automerger

View File

@@ -2449,7 +2449,12 @@ public class WindowManagerService extends IWindowManager.Stub
boolean assignLayers = false; boolean assignLayers = false;
if (imMayMove) { if (imMayMove) {
if (moveInputMethodWindowsIfNeededLocked(false)) { if (moveInputMethodWindowsIfNeededLocked(false) || displayed) {
// Little hack here -- we -should- be able to rely on the
// function to return true if the IME has moved and needs
// its layer recomputed. However, if the IME was hidden
// and isn't actually moved in the list, its layer may be
// out of data so we make sure to recompute it.
assignLayers = true; assignLayers = true;
} }
} }