Fixing notification image preview.

This commit is contained in:
Hugo Kiehl
2021-03-29 18:21:30 -04:00
committed by Alan Evans
parent 5f0341cd53
commit dd38dd9cae
8 changed files with 41 additions and 1 deletions

View File

@@ -268,7 +268,12 @@ public class SingleRecipientNotificationBuilder extends AbstractNotificationBuil
if (slideDeck != null && slideDeck.getThumbnailSlide() != null) {
Slide thumbnail = slideDeck.getThumbnailSlide();
dataUri = thumbnail.getUri();
if (Build.VERSION.SDK_INT >= 28) {
dataUri = thumbnail.getPublicUri();
} else {
dataUri = thumbnail.getUri();
}
mimeType = thumbnail.getContentType();
}