Show correct icon for attached WebXDC

This commit is contained in:
Arne 2024-08-08 13:36:23 +02:00
parent 4e1929d748
commit c08161c190

View file

@ -102,6 +102,8 @@ public class MediaAdapter extends RecyclerView.Adapter<MediaAdapter.MediaViewHol
attr = R.attr.media_preview_archive; attr = R.attr.media_preview_archive;
} else if (mime.equals("application/epub+zip") || mime.equals("application/vnd.amazon.mobi8-ebook")) { } else if (mime.equals("application/epub+zip") || mime.equals("application/vnd.amazon.mobi8-ebook")) {
attr = R.attr.media_preview_ebook; attr = R.attr.media_preview_ebook;
} else if (mime.equals("application/xdc+zip")) {
attr = R.attr.icon_webxdcs;
} else if (mime.equals(ExportBackupService.MIME_TYPE)) { } else if (mime.equals(ExportBackupService.MIME_TYPE)) {
attr = R.attr.media_preview_backup; attr = R.attr.media_preview_backup;
} else if (DOCUMENT_MIMES.contains(mime)) { } else if (DOCUMENT_MIMES.contains(mime)) {