From 807361feff24fa4cd8922822a94da9b081e3c62b Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Mon, 30 Mar 2020 14:26:10 -0700 Subject: [PATCH] Use the private presentation window type for platform view windows (flutter/engine#17385) --- .../io/flutter/plugin/platform/SingleViewPresentation.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/SingleViewPresentation.java b/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/SingleViewPresentation.java index 9bda1295b9..63bf92555c 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/SingleViewPresentation.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/plugin/platform/SingleViewPresentation.java @@ -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); + } } /**