From 5471a15959630bf6864586c22ee0add434e057bc Mon Sep 17 00:00:00 2001 From: Murilo Date: Tue, 23 Dec 2025 14:47:48 -0300 Subject: [PATCH] Add support for 'image/jpg' MIME type Requesting support for displaying jpg images in notifications. Currently, they are not embedded in the notification. --- 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 28be312b..393b99fb 100644 --- a/app/src/main/java/io/heckel/ntfy/util/Util.kt +++ b/app/src/main/java/io/heckel/ntfy/util/Util.kt @@ -327,7 +327,7 @@ fun mimeTypeToIconResource(mimeType: String?): Int { } fun supportedImage(mimeType: String?): Boolean { - return listOf("image/jpeg", "image/png", "image/gif", "image/webp").contains(mimeType) + return listOf("image/jpeg", "image/jpg", "image/png", "image/gif", "image/webp").contains(mimeType) } // We cannot open .apk files, because we don't have the REQUEST_INSTALL_PACKAGES anymore