From 08bea2bcbe9f4943410909871baa5874d3cb8ce3 Mon Sep 17 00:00:00 2001 From: jokakilla Date: Sun, 26 May 2024 11:57:00 +0200 Subject: [PATCH] Add image/webp to supportImage mimeType list --- app/src/main/java/io/heckel/ntfy/util/Util.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/heckel/ntfy/util/Util.kt b/app/src/main/java/io/heckel/ntfy/util/Util.kt index 2ffbb766..8cc15fc5 100644 --- a/app/src/main/java/io/heckel/ntfy/util/Util.kt +++ b/app/src/main/java/io/heckel/ntfy/util/Util.kt @@ -333,7 +333,7 @@ fun mimeTypeToIconResource(mimeType: String?): Int { } fun supportedImage(mimeType: String?): Boolean { - return listOf("image/jpeg", "image/png").contains(mimeType) + return listOf("image/jpeg", "image/png", "image/webp").contains(mimeType) } // Google Play doesn't allow us to install received .apk files anymore.