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

Skip to content
Commit 2e1b6610 authored by Michal Brzezinski's avatar Michal Brzezinski Committed by Michał Brzeziński
Browse files

Listening to setting changes in StickyKeyRepository

Implementing settingEnabled: Flow<Boolean> that listens to changes in
Settings.Secure.ACCESSIBILITY_STICKY_KEYS which means sticky key listener will be
registered only when user turns on the setting - compared to now listening always when
keyboard is connected. Also supporting per-user setting.

Test: StickyKeysIndicatorViewModelTest
Test: StickyKeysRepositoryImplTest
Test: switch between users having enabled/disabled sticky key setting and see if behaviour is correct
Flag: ACONFIG com.android.hardware.input.keyboard_a11y_sticky_keys_flag TRUNKFOOD
Fixes: 319837892
Change-Id: Iebe5d6aa38e633a81d38a0fb95645a91ed2575b7
parent cbd3466e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment