From ef98a24bf6f212bb06a212e804e6a339e303b809 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 12 Dec 2019 18:54:44 +0100 Subject: [PATCH] add .heic to list of known mime types fixes #3598 --- src/main/java/eu/siacs/conversations/utils/MimeUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/utils/MimeUtils.java b/src/main/java/eu/siacs/conversations/utils/MimeUtils.java index aaaef8e0d..3040ce15e 100644 --- a/src/main/java/eu/siacs/conversations/utils/MimeUtils.java +++ b/src/main/java/eu/siacs/conversations/utils/MimeUtils.java @@ -16,6 +16,7 @@ package eu.siacs.conversations.utils; import android.content.Context; import android.net.Uri; +import android.os.Build; import android.util.Log; import java.io.File; @@ -268,6 +269,7 @@ public final class MimeUtils { add("image/ico", "cur"); add("image/ico", "ico"); add("image/ief", "ief"); + add("image/heic","heic"); // add ".jpg" first so it will be the default for guessExtensionFromMimeType add("image/jpeg", "jpg"); add("image/jpeg", "jpeg");