mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 18:00:02 +01:00
Fixing notification image preview.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user