From 4f6039b28450d84c4268b21096f8f590f88857b2 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Wed, 17 Mar 2021 12:28:26 -0400 Subject: [PATCH] we don't support DirectStory yet, disabling it --- .../DirectInboxItemViewHolder.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/adapters/viewholder/directmessages/DirectInboxItemViewHolder.java b/app/src/main/java/awais/instagrabber/adapters/viewholder/directmessages/DirectInboxItemViewHolder.java index f6b0f679..2755cf32 100644 --- a/app/src/main/java/awais/instagrabber/adapters/viewholder/directmessages/DirectInboxItemViewHolder.java +++ b/app/src/main/java/awais/instagrabber/adapters/viewholder/directmessages/DirectInboxItemViewHolder.java @@ -117,18 +117,17 @@ public final class DirectInboxItemViewHolder extends RecyclerView.ViewHolder { } private void setSubtitle(@NonNull final DirectThread thread) { - // If there is an unopened raven media, give it highest priority final Resources resources = itemView.getResources(); - final DirectThreadDirectStory directStory = thread.getDirectStory(); final long viewerId = thread.getViewerId(); - if (directStory != null && !directStory.getItems().isEmpty()) { - final DirectItem item = directStory.getItems().get(0); - final MediaItemType mediaType = item.getVisualMedia().getMedia().getMediaType(); - final String username = DMUtils.getUsername(thread.getUsers(), item.getUserId(), viewerId, resources); - final String subtitle = DMUtils.getMediaSpecificSubtitle(username, resources, mediaType); - binding.subtitle.setText(subtitle); - return; - } +// final DirectThreadDirectStory directStory = thread.getDirectStory(); +// if (directStory != null && !directStory.getItems().isEmpty()) { +// final DirectItem item = directStory.getItems().get(0); +// final MediaItemType mediaType = item.getVisualMedia().getMedia().getMediaType(); +// final String username = DMUtils.getUsername(thread.getUsers(), item.getUserId(), viewerId, resources); +// final String subtitle = DMUtils.getMediaSpecificSubtitle(username, resources, mediaType); +// binding.subtitle.setText(subtitle); +// return; +// } final DirectItem item = thread.getFirstDirectItem(); if (item == null) return; final String subtitle = DMUtils.getMessageString(thread, resources, viewerId, item);