fix: add FLAG_NOT_FOCUSABLE to overlay so back key reaches underlying app
The overlay window was consuming performGlobalAction(GLOBAL_ACTION_BACK) events because it was focusable. Adding FLAG_NOT_FOCUSABLE ensures back key events pass through to the actual foreground app. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
45adabf82c
commit
c90d2a138f
1 changed files with 1 additions and 0 deletions
|
|
@ -237,6 +237,7 @@ class AssistantService : LifecycleService(), SavedStateRegistryOwner {
|
||||||
fixedHeightPx,
|
fixedHeightPx,
|
||||||
WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY,
|
WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY,
|
||||||
WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL or
|
WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL or
|
||||||
|
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE or
|
||||||
WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN,
|
WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN,
|
||||||
PixelFormat.TRANSLUCENT
|
PixelFormat.TRANSLUCENT
|
||||||
).apply {
|
).apply {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue