Page MenuHomePhabricator

[android] Implement hasMultipleFrames() function on Android
ClosedPublic

Authored by angelika on Thu, Mar 20, 4:38 AM.
Tags
None
Referenced Files
F5263813: D14472.id47598.diff
Sun, Apr 6, 6:38 PM
F5252011: D14472.diff
Sun, Apr 6, 4:50 AM
Unknown Object (File)
Sat, Apr 5, 8:50 PM
Unknown Object (File)
Sat, Apr 5, 11:46 AM
Unknown Object (File)
Fri, Apr 4, 10:58 PM
Unknown Object (File)
Fri, Apr 4, 6:43 AM
Unknown Object (File)
Thu, Apr 3, 12:28 PM
Unknown Object (File)
Wed, Apr 2, 7:39 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