Skip to content

Commit 137b309

Browse files
author
Chris Bellew
committed
Fetch correct thumbnails for notifications when pre-cacheing images during search.
1 parent 209659c commit 137b309

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mobile/src/main/java/com/atomjack/vcfp/services/PlexSearchService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,13 +1415,13 @@ public void onSuccess(Bitmap bitmap) {
14151415
new FetchMediaImageTask(firstMedia,
14161416
PlexMedia.IMAGE_SIZES.get(notificationImageKey)[0],
14171417
PlexMedia.IMAGE_SIZES.get(notificationImageKey)[1],
1418-
firstMedia.thumb != null ? firstMedia.thumb : firstMedia.grandparentThumb,
1418+
firstMedia.getNotificationThumb(notificationImageKey),
14191419
firstMedia.getImageKey(notificationImageKey),
14201420
bitmapHandler).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
14211421
new FetchMediaImageTask(firstMedia,
14221422
PlexMedia.IMAGE_SIZES.get(notificationImageKeyBig)[0],
14231423
PlexMedia.IMAGE_SIZES.get(notificationImageKeyBig)[1],
1424-
firstMedia.thumb != null ? firstMedia.thumb : firstMedia.grandparentThumb,
1424+
firstMedia.getNotificationThumb(notificationImageKeyBig),
14251425
firstMedia.getImageKey(notificationImageKeyBig),
14261426
bitmapHandler).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
14271427
numMedia[0] += 3;

0 commit comments

Comments
 (0)