From 1bcfae3aaed0efbf85ee070a16f9d703c1532d1c Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Fri, 15 Dec 2023 15:39:59 -0500 Subject: Fix app crashes when downloading videos. --- .../infinityforreddit/services/DownloadMediaService.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/src/main/java/ml/docilealligator') 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"; } -- cgit v1.2.3