Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Fix a crash when handling images with different width and height #97

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

yangcheng
Copy link

@yangcheng yangcheng commented Jan 10, 2021

When image width and height are different, before the fix an ArrayIndexOutOfBound exception will thrown. Main change is just swap the width and height, added a new, non-square test image
Other changes are used to make the app build for Android Studio 4.1

@facebook-github-bot
Copy link

Hi @yangcheng!

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.

In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@yangcheng yangcheng changed the title Fix width and height when handling images with different width and height Fix a crash when handling images with different width and height Jan 11, 2021
@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants