1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-22 14:47:29 +00:00
This commit is contained in:
Ammar Githam 2021-04-25 16:18:58 +09:00
parent 7658cacbc2
commit 3e06cb2079

View File

@ -1002,7 +1002,11 @@ public class PostViewV2Fragment extends SharedElementTransitionDialogFragment im
addSharedElement(sharedMainPostElement, binding.postImage); addSharedElement(sharedMainPostElement, binding.postImage);
} }
final Media media = viewModel.getMedia(); final Media media = viewModel.getMedia();
final ImageRequest requestBuilder = ImageRequestBuilder.newBuilderWithSource(Uri.parse(ResponseBodyUtils.getImageUrl(media))) final String imageUrl = ResponseBodyUtils.getImageUrl(media);
if (TextUtils.isEmpty(imageUrl)) {
return;
}
final ImageRequest requestBuilder = ImageRequestBuilder.newBuilderWithSource(Uri.parse(imageUrl))
.setLocalThumbnailPreviewsEnabled(true) .setLocalThumbnailPreviewsEnabled(true)
.build(); .build();
final DraweeController controller = Fresco final DraweeController controller = Fresco