Prevent overlaying IME picker

Fixes: 181660568
Test: atest InputMethodPickerTest
Change-Id: I38bf34f5a76e2d32bbe727cba9fe14e7f38af244
This commit is contained in:
Adrian Roos
2021-03-18 16:39:07 +01:00
parent f8c928be0e
commit aa3ef3cc7d

View File

@@ -200,6 +200,7 @@ public class InputMethodMenuController {
final Window w = mSwitchingDialog.getWindow();
final WindowManager.LayoutParams attrs = w.getAttributes();
w.setType(WindowManager.LayoutParams.TYPE_INPUT_METHOD_DIALOG);
w.setHideOverlayWindows(true);
// Use an alternate token for the dialog for that window manager can group the token
// with other IME windows based on type vs. grouping based on whichever token happens
// to get selected by the system later on.