diff options
| author | 2023-12-15 11:52:42 +0000 | |
|---|---|---|
| committer | 2023-12-15 18:39:37 +0000 | |
| commit | 84cba492ce54621383ad0c990e3a03cd4c0b9f78 (patch) | |
| tree | 799ba18ed7c5a0cb466aaedfaa538c2f4ca66d64 /api/api.go | |
| parent | 6f6018379c85a4e0bdf2a9a3534c7883c9b4c419 (diff) | |
Fixing tiles scrolling with arrow keys
Tiles were scrolling whenever ACTION_UP event was received on page indicator but that could also happen when user moves focus with arrows and only lands on page indicator.
Solution is to react on ACTION_UP event only after first (instead of repeated) ACTION_DOWN was received on this view as well and view doesn't lose focus in the meantime.
This logic is a bit more complicated so decided to make it internal in PageIndicator and extract this logic to separate class: LeftRightArrowPressedListener
Test: LeftRightArrowPressedListenerTest
Test: PagedTileLayoutTest
Test: navigate shade with arrows and see tiles don't scroll when focus lands on them
Fixes: 316554707
Flag: None
Change-Id: I59cfc851971b1e52f68c6a7279bd9bf1e62af159
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions