diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-12-15 20:39:59 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-12-15 20:39:59 +0000 |
commit | 1bcfae3aaed0efbf85ee070a16f9d703c1532d1c (patch) | |
tree | 8a841abedd392bf8ab6f236c694df8f19f84347e /app/src/main/java/ml/docilealligator | |
parent | 6065dc84548e2111cabb23565e8789cf091fd75b (diff) | |
download | infinity-for-reddit-1bcfae3aaed0efbf85ee070a16f9d703c1532d1c.tar infinity-for-reddit-1bcfae3aaed0efbf85ee070a16f9d703c1532d1c.tar.gz infinity-for-reddit-1bcfae3aaed0efbf85ee070a16f9d703c1532d1c.tar.bz2 infinity-for-reddit-1bcfae3aaed0efbf85ee070a16f9d703c1532d1c.tar.lz infinity-for-reddit-1bcfae3aaed0efbf85ee070a16f9d703c1532d1c.tar.xz infinity-for-reddit-1bcfae3aaed0efbf85ee070a16f9d703c1532d1c.tar.zst infinity-for-reddit-1bcfae3aaed0efbf85ee070a16f9d703c1532d1c.zip |
Fix app crashes when downloading videos.
Diffstat (limited to 'app/src/main/java/ml/docilealligator')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/services/DownloadMediaService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/services/DownloadMediaService.java b/app/src/main/java/ml/docilealligator/infinityforreddit/services/DownloadMediaService.java index cc7f7910..0013f99e 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/services/DownloadMediaService.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/services/DownloadMediaService.java @@ -271,8 +271,10 @@ public class DownloadMediaService extends Service { switch (mediaType) { case EXTRA_MEDIA_TYPE_VIDEO: mimeType = "video/mpeg"; + break; case EXTRA_MEDIA_TYPE_GIF: mimeType = "image/gif"; + break; default: mimeType = "image/jpeg"; } |