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 ArrayOutOfBoundsException on setting scale type for certain devices #145

Merged
merged 1 commit into from
Nov 11, 2020

Conversation

vinaygaba
Copy link
Contributor

@vinaygaba vinaygaba commented Nov 11, 2020

This PR fixes the ArrayOutOfBoundsException that happens when the scale type is set on certain devices, specifically the Meitu devices. This is because the scaleType enum indices on those devices is probably modified. As a quick way to fix this issue, I add a check to ensure that the index passed to the setScaleType method is in the right range.

@elihart @BenSchwab

@vinaygaba vinaygaba changed the title Fix ArrayOutOfBoundException on setting scale type for certain devices Fix ArrayOutOfBoundsException on setting scale type for certain devices Nov 11, 2020
@vinaygaba vinaygaba merged commit f4de6cc into airbnb:master Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants