We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a538b4a + 44ad61c commit 13b21e6Copy full SHA for 13b21e6
services/java/com/android/server/WindowManagerService.java
@@ -929,6 +929,10 @@ int findDesiredInputMethodWindowIndexLocked(boolean willMove) {
929
&& w.mAttrs.type == WindowManager.LayoutParams.TYPE_APPLICATION_STARTING
930
&& i > 0) {
931
WindowState wb = localmWindows.get(i-1);
932
+ while (i > 1 && wb.mAppToken == w.mAppToken && !canBeImeTarget(wb)) {
933
+ i--;
934
+ wb = localmWindows.get(i-1);
935
+ }
936
if (wb.mAppToken == w.mAppToken && canBeImeTarget(wb)) {
937
i--;
938
w = wb;
0 commit comments