未验证 提交 141d2ea0 编写于 作者: J Jason Simmons 提交者: GitHub

Use the private presentation window type for platform view windows (#17385)

上级 915e63ec
...@@ -125,6 +125,9 @@ class SingleViewPresentation extends Presentation { ...@@ -125,6 +125,9 @@ class SingleViewPresentation extends Presentation {
.setFlags( .setFlags(
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE, WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE,
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE); WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
getWindow().setType(WindowManager.LayoutParams.TYPE_PRIVATE_PRESENTATION);
}
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册