Page MenuHomePhabricator

[android] Implement hasMultipleFrames() function on Android
AcceptedPublic

Authored by angelika on Thu, Mar 20, 4:38 AM.
Tags
None
Referenced Files
F5057497: D14472.diff
Wed, Mar 26, 12:13 AM
F5056192: D14472.diff
Tue, Mar 25, 9:10 PM
F5055882: D14472.diff
Tue, Mar 25, 6:03 PM
Unknown Object (File)
Tue, Mar 25, 6:41 AM
Unknown Object (File)
Tue, Mar 25, 5:31 AM
Unknown Object (File)
Mon, Mar 24, 2:31 PM
Subscribers

Details

Reviewers
bartek
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