From 86c9e0eda8f31211cde731dc932ea440d29bdc4a Mon Sep 17 00:00:00 2001 From: Matt Casey Date: Thu, 11 Jun 2020 09:54:42 -0400 Subject: [PATCH] Add FLAG_ALT_FOCUSABLE_IM to screenshot window. Avoid interacting with the IME when we don't need it in the screenshot window. Bug: 158664238 Test: Verify that IME is not dismissed when triggering screenshot. Verify that UI exploration with talkback still works. Change-Id: Ie13b1d01ce54862b39df646d57fcfcee1e74f8d6 --- .../src/com/android/systemui/screenshot/GlobalScreenshot.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java b/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java index 57436bc9e6756..591e1c75ff39d 100644 --- a/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java +++ b/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java @@ -271,7 +271,8 @@ public class GlobalScreenshot implements ViewTreeObserver.OnComputeInternalInset | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN | WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL | WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH - | WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED, + | WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED + | WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM, PixelFormat.TRANSLUCENT); mWindowLayoutParams.setTitle("ScreenshotAnimation"); mWindowLayoutParams.layoutInDisplayCutoutMode = LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS;