diff options
| author | 2024-01-31 11:33:40 +0000 | |
|---|---|---|
| committer | 2024-01-31 11:33:40 +0000 | |
| commit | 71da30a0e9f0c26b239aa7c0f90e3bd0883cbbf6 (patch) | |
| tree | e1c6fd823503e0048a3ad96896c9037fa7253aa8 | |
| parent | 54391c0eb6f7bce26f098c45ce37501749076fb3 (diff) | |
| parent | 20e979cbe5b216fa3b4cb8cdb2f49256c4a23fd7 (diff) | |
Merge "Sticky keys should not capture focus" into main
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/keyboard/stickykeys/ui/StickyKeysIndicatorCoordinator.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyboard/stickykeys/ui/StickyKeysIndicatorCoordinator.kt b/packages/SystemUI/src/com/android/systemui/keyboard/stickykeys/ui/StickyKeysIndicatorCoordinator.kt index b68551bf93b3..c3a618d29c76 100644 --- a/packages/SystemUI/src/com/android/systemui/keyboard/stickykeys/ui/StickyKeysIndicatorCoordinator.kt +++ b/packages/SystemUI/src/com/android/systemui/keyboard/stickykeys/ui/StickyKeysIndicatorCoordinator.kt @@ -58,7 +58,6 @@ constructor( dialog = null } else if (dialog == null) { dialog = ComposeFacade.createStickyKeysDialog(dialogFactory, viewModel).apply { - setCanceledOnTouchOutside(false) window?.setAttributes() show() } @@ -70,6 +69,7 @@ constructor( private fun Window.setAttributes() { setType(WindowManager.LayoutParams.TYPE_STATUS_BAR_SUB_PANEL) addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED) + addFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE) clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND) setGravity(Gravity.TOP or Gravity.END) attributes = WindowManager.LayoutParams().apply { |