A tiny cleanup as the supplement of I9b5ef954479150bc4735

Bug: 3483284
Bug: 8851603

Change-Id: Ia6dd894dced9cc68c04aafdcae754a404cf52e83
This commit is contained in:
Satoshi Kataoka
2013-05-21 06:19:27 +09:00
parent 02679f647b
commit 12afe1450e

View File

@@ -9648,8 +9648,7 @@ public class WindowManagerService extends IWindowManager.Stub
mLosingFocus.remove(newFocus);
int focusChanged = mPolicy.focusChangedLw(oldFocus, newFocus);
final WindowState imWindow = mInputMethodWindow;
if (imWindowChanged && oldFocus != imWindow) {
if (imWindowChanged && oldFocus != mInputMethodWindow) {
// Focus of the input method window changed. Perform layout if needed.
if (mode == UPDATE_FOCUS_PLACING_SURFACES) {
performLayoutLockedInner(displayContent, true /*initial*/, updateInputWindows);