am 27b82632: Merge "Retain IME assignment if no windows accept input." into klp-dev
* commit '27b826325c6201a0bb96efb1011c752408ece18a': Retain IME assignment if no windows accept input.
This commit is contained in:
@@ -1232,10 +1232,10 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
// the IME above it until it is completely gone so it doesn't drop
|
||||
// behind the dialog or its full-screen scrim.
|
||||
final WindowState curTarget = mInputMethodTarget;
|
||||
if (curTarget != null && w != null
|
||||
if (curTarget != null
|
||||
&& curTarget.isDisplayedLw()
|
||||
&& curTarget.isClosing()
|
||||
&& (curTarget.mWinAnimator.mAnimLayer > w.mWinAnimator.mAnimLayer)) {
|
||||
&& (w == null || curTarget.mWinAnimator.mAnimLayer > w.mWinAnimator.mAnimLayer)) {
|
||||
if (DEBUG_INPUT_METHOD) Slog.v(TAG, "Current target higher, not changing");
|
||||
return windows.indexOf(curTarget) + 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user