Page MenuHomePhabricator

[android] Implement hasMultipleFrames() function on Android
ClosedPublic

Authored by angelika on Mar 20 2025, 4:38 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 22, 1:11 PM
Unknown Object (File)
Thu, Apr 17, 1:54 PM
Unknown Object (File)
Mon, Apr 14, 8:16 AM
Unknown Object (File)
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
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
Lint Not Applicable
Unit
Tests Not Applicable

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.Mar 21 2025, 1:51 AM