Browse Source

v16.6-a2: Expired stories now covered

legacy v16.6-a2
Austin Huang 5 years ago
parent
commit
42a945574a
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 2
      app/build.gradle
  2. 12
      app/src/main/java/awais/instagrabber/adapters/MessageItemsAdapter.java

2
app/build.gradle

@ -10,7 +10,7 @@ android {
targetSdkVersion 29
versionCode 27
versionName '16.6-a1'
versionName '16.6-a2'
multiDexEnabled true

12
app/src/main/java/awais/instagrabber/adapters/MessageItemsAdapter.java

@ -263,11 +263,15 @@ public final class MessageItemsAdapter extends RecyclerView.Adapter<TextMessageV
final DirectItemMediaModel reelShareMedia = reelShare.getMedia();
final MediaItemType mediaType = reelShareMedia.getMediaType();
holder.mediaTypeIcon.setVisibility(mediaType == MediaItemType.MEDIA_TYPE_VIDEO ||
mediaType == MediaItemType.MEDIA_TYPE_SLIDER ? View.VISIBLE : View.GONE);
if (mediaType == null)
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);
holder.mediaMessageContainer.setVisibility(View.VISIBLE);
glideRequestManager.load(reelShareMedia.getThumbUrl()).into(holder.ivMediaPreview);
holder.mediaMessageContainer.setVisibility(View.VISIBLE);
}
}
break;

Loading…
Cancel
Save