Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash with Rotary input and empty visible items #1848

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

Kpeved
Copy link
Collaborator

@Kpeved Kpeved commented Dec 4, 2023

WHAT

Crash was fixed Bug: b/305901991

WHY

Way to reproduce it : continuously scroll rsb and open new screen which has picker in it. Before picker is initialised, if it receives a rotary event , it crashes.
Another way to test is to revert changes in PickerRotaryScrollAdapter and launch RotaryInteractionTest.scrollPicker_receiveRotaryEventsBeforeInitialisation test.

HOW

Checklist 📋

  • Add explicit visibility modifier and explicit return types for public declarations
  • Run spotless check
  • Run tests
  • Update metalava's signature text files

@Kpeved Kpeved added the rotary_haptics Everything related to rotary and haptics label Dec 4, 2023
@Kpeved Kpeved requested a review from yschimke December 4, 2023 12:43
@yschimke yschimke merged commit 1dcdf49 into main Dec 4, 2023
4 checks passed
@yschimke yschimke deleted the rotary-scroll-fix-04.12 branch December 4, 2023 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rotary_haptics Everything related to rotary and haptics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants