This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
Do not crash when ScrollView snapToOffsets is empty
Summary: The value of the `ScrollView.snapToOffsets` property can be an empty array (most likely an issue in the product code), which will crash the app. This diff adds a check to prevent crashing in this scenario and falling back to the default snap behaviour. Changelog: [Android][Fixed] - Do not crash when ScrollView snapToOffsets is empty Reviewed By: sammy-SC Differential Revision: D24502365 fbshipit-source-id: c63b8e3b8f2fb323ebd6c962ee628015934d8e11
- Loading branch information
Showing 1 changed file with 1 addition and 1 deletion.