OSDN Git Service

A tiny cleanup as the supplement of I9b5ef954479150bc4735
authorSatoshi Kataoka <satok@google.com>
Mon, 20 May 2013 21:19:27 +0000 (06:19 +0900)
committerSatoshi Kataoka <satok@google.com>
Mon, 20 May 2013 21:19:27 +0000 (06:19 +0900)
Bug: 3483284
Bug: 8851603

Change-Id: Ia6dd894dced9cc68c04aafdcae754a404cf52e83

services/java/com/android/server/wm/WindowManagerService.java

index 2467b5a..f8e6ea3 100644 (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);