From 58a98bee7a08aac0c4bb1ee5c3abe37a2d407fff Mon Sep 17 00:00:00 2001 From: Martijn van Dijk Date: Tue, 11 Aug 2020 16:35:56 +0200 Subject: [PATCH] Use display image on ios --- MediaManager/Platforms/Ios/Media/AVAssetImageProvider.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MediaManager/Platforms/Ios/Media/AVAssetImageProvider.cs b/MediaManager/Platforms/Ios/Media/AVAssetImageProvider.cs index 2058f4de..42408a6e 100644 --- a/MediaManager/Platforms/Ios/Media/AVAssetImageProvider.cs +++ b/MediaManager/Platforms/Ios/Media/AVAssetImageProvider.cs @@ -20,13 +20,13 @@ public async Task ProvideImage(IMediaItem mediaItem) object image = null; try { - if (!string.IsNullOrEmpty(mediaItem.ImageUri)) + if (!string.IsNullOrEmpty(mediaItem.DisplayImageUri)) { - var location = MediaManager.Extractor.GetMediaLocation(mediaItem.ImageUri); + var location = MediaManager.Extractor.GetMediaLocation(mediaItem.DisplayImageUri); if (location == MediaLocation.Resource) - mediaItem.Image = image = UIImage.FromBundle(mediaItem.ImageUri); + mediaItem.Image = image = UIImage.FromBundle(mediaItem.DisplayImageUri); else - mediaItem.Image = image = UIImage.LoadFromData(NSData.FromUrl(new NSUrl(mediaItem.ImageUri))); + mediaItem.Image = image = UIImage.LoadFromData(NSData.FromUrl(new NSUrl(mediaItem.DisplayImageUri))); } if (image == null && !string.IsNullOrEmpty(mediaItem.AlbumImageUri)) {