Skip to content

Guard against Bitmap allocations of size 0#2626

Merged
gpeal merged 1 commit intoairbnb:masterfrom
allenchen1154:allen--android-12-imagelayer-crashfix
Apr 2, 2025
Merged

Guard against Bitmap allocations of size 0#2626
gpeal merged 1 commit intoairbnb:masterfrom
allenchen1154:allen--android-12-imagelayer-crashfix

Conversation

@allenchen1154
Copy link
Copy Markdown
Collaborator

Fixes #2620, which only occurs on Android 12 devices.

See my branch for a repro example.

With the fix:

lottie.android.12.crash.fix.mp4

Fixes airbnb#2620, which only occurs on Android 12 devices.
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2025

Snapshot Tests
API 23: Report Diff
API 31: Report Diff

@gpeal gpeal merged commit ec1e960 into airbnb:master Apr 2, 2025
7 checks passed
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.

IllegalArgumentException: width and height must be > 0

2 participants