mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-26 00:27:30 +00:00
v16.6-a2: Expired stories now covered
This commit is contained in:
parent
9d49b937e4
commit
42a945574a
@ -10,7 +10,7 @@ android {
|
|||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
|
|
||||||
versionCode 27
|
versionCode 27
|
||||||
versionName '16.6-a1'
|
versionName '16.6-a2'
|
||||||
|
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
|
|
||||||
|
@ -263,11 +263,15 @@ public final class MessageItemsAdapter extends RecyclerView.Adapter<TextMessageV
|
|||||||
final DirectItemMediaModel reelShareMedia = reelShare.getMedia();
|
final DirectItemMediaModel reelShareMedia = reelShare.getMedia();
|
||||||
final MediaItemType mediaType = reelShareMedia.getMediaType();
|
final MediaItemType mediaType = reelShareMedia.getMediaType();
|
||||||
|
|
||||||
holder.mediaTypeIcon.setVisibility(mediaType == MediaItemType.MEDIA_TYPE_VIDEO ||
|
if (mediaType == null)
|
||||||
mediaType == MediaItemType.MEDIA_TYPE_SLIDER ? View.VISIBLE : View.GONE);
|
holder.mediaExpiredIcon.setVisibility(View.VISIBLE);
|
||||||
|
else {
|
||||||
|
holder.mediaTypeIcon.setVisibility(mediaType == MediaItemType.MEDIA_TYPE_VIDEO ||
|
||||||
|
mediaType == MediaItemType.MEDIA_TYPE_SLIDER ? View.VISIBLE : View.GONE);
|
||||||
|
|
||||||
glideRequestManager.load(reelShareMedia.getThumbUrl()).into(holder.ivMediaPreview);
|
glideRequestManager.load(reelShareMedia.getThumbUrl()).into(holder.ivMediaPreview);
|
||||||
holder.mediaMessageContainer.setVisibility(View.VISIBLE);
|
holder.mediaMessageContainer.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user