mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 14:47:29 +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);
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user