OSDN Git Service

Fix IME layout
authorJorim Jaggi <jjaggi@google.com>
Sat, 16 Apr 2016 05:52:00 +0000 (22:52 -0700)
committerJorim Jaggi <jjaggi@google.com>
Mon, 18 Apr 2016 20:15:49 +0000 (20:15 +0000)
When introducing the fitToDisplay variable, it should have been

fitToDisplay = task != null -> (implies) !task.isFloating();

but was written as task != null && !task.isFloating.

Bug: 28182018
Change-Id: If0be86f1ed8bb88914ce167e9f5273b6b3dc2571

services/core/java/com/android/server/wm/WindowState.java

index bf69717..5077f32 100644 (file)
@@ -2608,7 +2608,7 @@ final class WindowState implements WindowManagerPolicy.WindowState {
         final int ph = containingFrame.height();
         final Task task = getTask();
         final boolean nonFullscreenTask = isInMultiWindowMode();
-        final boolean fitToDisplay = task != null && !nonFullscreenTask && !layoutInParentFrame();
+        final boolean fitToDisplay = (task == null || !nonFullscreenTask) && !layoutInParentFrame();
         float x, y;
         int w,h;