packages/SystemUI/src/com/android/systemui/keyboard/stickykeys/ui/StickyKeyDialogFactory.kt
0 → 100644
+67
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
SystemUIDialog overrides home gesture but we don't want for sticky keys indicator - it should be always on the screen, not reacting to any gestures. This change wrapes indicator in ComponentDialog from AndroidX which supports compose. Also logic for creating Dialog itself, configuring window etc is moved to separate StickyKeyDialogFactory so that StickyKeysIndicatorCoordinator is responsible only for hiding/showing and calling factory to create dialog. Flag: ACONFIG com.android.hardware.input.keyboard_a11y_sticky_keys_flag TRUNKFOOD Fixes: 322978495 Fixes: 322948031 Test: home gesture does not dismiss indicator and (gesture) still works correctly Test: triggering assistant is not dismissing indicator Change-Id: I0466d9bb332b1af5737fad924ba4e18c26fe6286