Merge branch 'master' of https://github.com/austinhuang0131/barinsta
This commit is contained in:
commit
13200f3f1d
@ -117,18 +117,17 @@ public final class DirectInboxItemViewHolder extends RecyclerView.ViewHolder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void setSubtitle(@NonNull final DirectThread thread) {
|
private void setSubtitle(@NonNull final DirectThread thread) {
|
||||||
// If there is an unopened raven media, give it highest priority
|
|
||||||
final Resources resources = itemView.getResources();
|
final Resources resources = itemView.getResources();
|
||||||
final DirectThreadDirectStory directStory = thread.getDirectStory();
|
|
||||||
final long viewerId = thread.getViewerId();
|
final long viewerId = thread.getViewerId();
|
||||||
if (directStory != null && !directStory.getItems().isEmpty()) {
|
// final DirectThreadDirectStory directStory = thread.getDirectStory();
|
||||||
final DirectItem item = directStory.getItems().get(0);
|
// if (directStory != null && !directStory.getItems().isEmpty()) {
|
||||||
final MediaItemType mediaType = item.getVisualMedia().getMedia().getMediaType();
|
// final DirectItem item = directStory.getItems().get(0);
|
||||||
final String username = DMUtils.getUsername(thread.getUsers(), item.getUserId(), viewerId, resources);
|
// final MediaItemType mediaType = item.getVisualMedia().getMedia().getMediaType();
|
||||||
final String subtitle = DMUtils.getMediaSpecificSubtitle(username, resources, mediaType);
|
// final String username = DMUtils.getUsername(thread.getUsers(), item.getUserId(), viewerId, resources);
|
||||||
binding.subtitle.setText(subtitle);
|
// final String subtitle = DMUtils.getMediaSpecificSubtitle(username, resources, mediaType);
|
||||||
return;
|
// binding.subtitle.setText(subtitle);
|
||||||
}
|
// return;
|
||||||
|
// }
|
||||||
final DirectItem item = thread.getFirstDirectItem();
|
final DirectItem item = thread.getFirstDirectItem();
|
||||||
if (item == null) return;
|
if (item == null) return;
|
||||||
final String subtitle = DMUtils.getMessageString(thread, resources, viewerId, item);
|
final String subtitle = DMUtils.getMessageString(thread, resources, viewerId, item);
|
||||||
|
Loading…
Reference in New Issue
Block a user