Merge "Show IME-related system IME dialogs over windows owned by the IME"

This commit is contained in:
Yohei Yukawa
2014-06-11 01:56:12 +00:00
committed by Android (Google) Code Review

View File

@@ -1484,10 +1484,15 @@ public class WindowManagerService extends IWindowManager.Stub
if (pos >= 0) {
final AppWindowToken targetAppToken = mInputMethodTarget.mAppToken;
if (pos < windows.size()) {
WindowState wp = windows.get(pos);
if (wp == mInputMethodWindow) {
pos++;
// Skip windows owned by the input method.
if (mInputMethodWindow != null) {
while (pos < windows.size()) {
WindowState wp = windows.get(pos);
if (wp == mInputMethodWindow || wp.mAttachedWindow == mInputMethodWindow) {
pos++;
continue;
}
break;
}
}
if (DEBUG_INPUT_METHOD) Slog.v(TAG, "Adding " + N + " dialogs at pos=" + pos);