Page MenuHomePhabricator

[android] Implement hasMultipleFrames() function on Android
ClosedPublic

Authored by angelika on Thu, Mar 20, 4:38 AM.
Tags
None
Referenced Files
F5547578: D14472.id47548.diff
Sat, Apr 12, 7:32 AM
Unknown Object (File)
Thu, Apr 10, 8:25 AM
Unknown Object (File)
Wed, Apr 9, 4:53 PM
Unknown Object (File)
Wed, Apr 9, 4:39 PM
Unknown Object (File)
Sun, Apr 6, 6:38 PM
Unknown Object (File)
Sun, Apr 6, 4:50 AM
Unknown Object (File)
Sat, Apr 5, 8:50 PM
Unknown Object (File)
Sat, Apr 5, 11:46 AM
Subscribers

Details

Summary
Test Plan

Try to send a gif with animation and without animation and verify that the function returns correct result.
Set mediaType to 'photo_or_video' for gifs in order to trigger the check.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

angelika held this revision as a draft.
native/expo-modules/comm-expo-package/android/src/main/java/app/comm/android/media/MediaModule.kt
91 ↗(On Diff #47483)

Movie is deprecated but AnimatedImageDrawable is available only for Android 9+. According to our build.gradle we're supporting Android 8.0+ so I put both versions and a check here.

bartek added inline comments.
native/expo-modules/comm-expo-package/android/src/main/java/app/comm/android/media/MediaModule.kt
91 ↗(On Diff #47483)

👍

This revision is now accepted and ready to land.Fri, Mar 21, 1:51 AM