mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-08 07:57:28 +00:00
Null check. Fixes austinhuang0131/barinsta#1125
This commit is contained in:
parent
7658cacbc2
commit
3e06cb2079
@ -1002,7 +1002,11 @@ public class PostViewV2Fragment extends SharedElementTransitionDialogFragment im
|
||||
addSharedElement(sharedMainPostElement, binding.postImage);
|
||||
}
|
||||
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)
|
||||
.build();
|
||||
final DraweeController controller = Fresco
|
||||
|
Loading…
Reference in New Issue
Block a user