Merge "Place InputMethod after DockedDivider in window list." into nyc-dev

am: f815e1b

* commit 'f815e1b8d775240056308d94e8d15627cadb405e':
  Place InputMethod after DockedDivider in window list.

Change-Id: I5598f74d2840150bc406b41af1b6f4ab32a37326
This commit is contained in:
Robert Carr
2016-04-19 22:07:25 +00:00
committed by android-build-merger
2 changed files with 15 additions and 1 deletions

View File

@@ -663,4 +663,8 @@ public class DockedStackDividerController implements DimLayerUser {
public String toShortString() {
return TAG;
}
}
WindowState getWindow() {
return mWindow;
}
}

View File

@@ -1563,6 +1563,16 @@ public class WindowManagerService extends IWindowManager.Stub
mLayersController.setInputMethodAnimLayerAdjustment(0);
}
}
// If the docked divider is visible, we still need to go through this whole
// excercise to find the appropriate input method target (used for animations
// and dialog adjustments), but for purposes of Z ordering we simply wish to
// place it above the docked divider.
WindowState dockedDivider = w.mDisplayContent.mDividerControllerLocked.getWindow();
if (dockedDivider != null && dockedDivider.isVisibleLw()) {
int dividerIndex = windows.indexOf(dockedDivider);
return dividerIndex > 0 ? dividerIndex + 1 : i + 1;
}
return i+1;
}
if (willMove) {