fix crash in StatusBaseViewHolder

main
Conny Duck 5 years ago
parent 2a52305190
commit 8d8a525e76
  1. 2
      app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java

@ -507,7 +507,7 @@ public abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
private static CharSequence getAttachmentDescription(Context context, Attachment attachment) { private static CharSequence getAttachmentDescription(Context context, Attachment attachment) {
String duration = ""; String duration = "";
if(attachment.getMeta().getDuration() != null && attachment.getMeta().getDuration() > 0) { if(attachment.getMeta() != null && attachment.getMeta().getDuration() != null && attachment.getMeta().getDuration() > 0) {
duration = formatDuration(attachment.getMeta().getDuration()) + " "; duration = formatDuration(attachment.getMeta().getDuration()) + " ";
} }
if (TextUtils.isEmpty(attachment.getDescription())) { if (TextUtils.isEmpty(attachment.getDescription())) {

Loading…
Cancel
Save