From 141d2ea050d9847da2f1ff412cd7511148f64cd6 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 (#17385) --- .../io/flutter/plugin/platform/SingleViewPresentation.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell/platform/android/io/flutter/plugin/platform/SingleViewPresentation.java b/shell/platform/android/io/flutter/plugin/platform/SingleViewPresentation.java index 9bda1295b..63bf92555 100644 --- a/shell/platform/android/io/flutter/plugin/platform/SingleViewPresentation.java +++ b/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); + } } /** -- GitLab