OSDN Git Service

Revert "Do not set docked divider as IME target."
authorYohei Yukawa <yukawa@google.com>
Tue, 5 Apr 2016 18:35:35 +0000 (11:35 -0700)
committerYohei Yukawa <yukawa@google.com>
Tue, 5 Apr 2016 18:35:35 +0000 (11:35 -0700)
This reverts commit ebe9c0dbebbd8c2a23a76ff827b90e66ce3813bf [1],
because it caused a regression that IME window becomes transparent on
the lock screen (Bug 28013209).

 [1]: I7d406cc88aae40a8b22c1fc1d856ccb7b6bb4558

Bug: 26387930
Bug: 28013209
Change-Id: I11243703030e34b917136b69a35245e9ef73c87c

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

index 3bfcf00..1d64c82 100644 (file)
@@ -199,12 +199,6 @@ public class WindowLayersController {
         }
 
         layer = assignAndIncreaseLayerIfNeeded(mDockDivider, layer);
-
-        // If we have a dock divider ensure the Input Method is above it.
-        if (mDockDivider != null && mService.mInputMethodWindow != null) {
-            layer = assignAndIncreaseLayerIfNeeded(mService.mInputMethodWindow, layer);
-        }
-        
         // We know that we will be animating a relaunching window in the near future, which will
         // receive a z-order increase. We want the replaced window to immediately receive the same
         // treatment, e.g. to be above the dock divider.
index fd6617a..65cce67 100644 (file)
@@ -1373,7 +1373,7 @@ public class WindowManagerService extends IWindowManager.Stub
         // needs to sit above the dock divider, so it doesn't get cut in half. We make the dock
         // divider be a target for IME, so this relationship can occur naturally.
         if (fl == 0 || fl == (FLAG_NOT_FOCUSABLE|FLAG_ALT_FOCUSABLE_IM)
-                || type == TYPE_APPLICATION_STARTING) {
+                || type == TYPE_APPLICATION_STARTING || type == TYPE_DOCK_DIVIDER) {
             if (DEBUG_INPUT_METHOD) {
                 Slog.i(TAG_WM, "isVisibleOrAdding " + w + ": " + w.isVisibleOrAdding());
                 if (!w.isVisibleOrAdding()) {