Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86c9e0ed authored by Matt Casey's avatar Matt Casey
Browse files

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
parent cf2c8428
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;