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

This commit is contained in:
Jason Simmons
2020-03-30 14:26:10 -07:00
committed by GitHub
parent 1000f22660
commit 807361feff

View File

@@ -125,6 +125,9 @@ class SingleViewPresentation extends Presentation {
.setFlags(
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);
}
}
/**