Program: 35541
Project: 35541
Buggy source:
@Override public void bindViewHolder(FlexibleAdapter<IFlexible> adapter,ConversationItemViewHolder holder,int position,List<Object> payloads){
  Context context=NextcloudTalkApplication.getSharedApplication().getApplicationContext();
  if (adapter.hasFilter()) {
    FlexibleUtils.highlightText(holder.dialogName,conversation.getDisplayName(),String.valueOf(adapter.getFilter(String.class)),NextcloudTalkApplication.getSharedApplication().getResources().getColor(R.color.colorPrimary));
  }
 else {
    holder.dialogName.setText(conversation.getDisplayName());
  }
  if (conversation.getUnreadMessages() > 0) {
    holder.dialogUnreadBubble.setVisibility(View.VISIBLE);
    if (conversation.getUnreadMessages() < 10) {
      holder.dialogUnreadBubble.setText(Long.toString(conversation.getUnreadMessages()));
    }
 else {
      holder.dialogUnreadBubble.setText("String_Node_Str");
    }
    if (conversation.isUnreadMention()) {
      holder.dialogUnreadBubble.setBackground(context.getDrawable(R.drawable.bubble_circle_unread_mention));
    }
 else {
      holder.dialogUnreadBubble.setBackground(context.getDrawable(R.drawable.bubble_circle_unread));
    }
  }
 else {
    holder.dialogUnreadBubble.setVisibility(View.GONE);
  }
  String authorDisplayName="String_Node_Str";
  if (conversation.getLastMessage() != null) {
    holder.dialogDate.setVisibility(View.VISIBLE);
    holder.dialogDate.setText(DateUtils.getRelativeTimeSpanString(conversation.getLastActivity() * 1000L,System.currentTimeMillis(),0,DateUtils.FORMAT_ABBREV_RELATIVE));
    if (conversation.getType() == Conversation.RoomType.ROOM_TYPE_ONE_TO_ONE_CALL) {
      holder.dialogLastMessageUserAvatar.setVisibility(View.GONE);
      holder.dialogLastMessage.setText(conversation.getLastMessage().getText());
    }
 else {
      holder.dialogLastMessageUserAvatar.setVisibility(View.VISIBLE);
      if (conversation.getLastMessage().getActorId().equals(userEntity.getUserId())) {
        authorDisplayName=context.getString(R.string.nc_chat_you) + "String_Node_Str";
      }
 else {
        if (!TextUtils.isEmpty(conversation.getLastMessage().getActorDisplayName())) {
          authorDisplayName=conversation.getLastMessage().getActorDisplayName() + "String_Node_Str";
        }
 else {
          authorDisplayName=context.getString(R.string.nc_nick_guest) + "String_Node_Str";
        }
      }
      String fullString=authorDisplayName + conversation.getLastMessage().getText();
      Spannable spannableString=new SpannableString(fullString);
      final StyleSpan boldStyleSpan=new StyleSpan(Typeface.BOLD);
      spannableString.setSpan(boldStyleSpan,0,fullString.indexOf("String_Node_Str") + 1,Spannable.SPAN_INCLUSIVE_INCLUSIVE);
      holder.dialogLastMessage.setText(spannableString,TextView.BufferType.SPANNABLE);
      holder.dialogLastMessageUserAvatar.setVisibility(View.VISIBLE);
      int smallAvatarSize=Math.round(context.getResources().getDimension(R.dimen.small_item_height));
      if (conversation.getLastMessage().getActorType().equals("String_Node_Str")) {
        TextDrawable drawable=TextDrawable.builder().beginConfig().bold().endConfig().buildRound(String.valueOf(authorDisplayName.charAt(0)),context.getResources().getColor(R.color.nc_grey));
        holder.dialogLastMessageUserAvatar.setImageDrawable(drawable);
      }
 else {
        GlideUrl glideUrl=new GlideUrl(ApiUtils.getUrlForAvatarWithName(userEntity.getBaseUrl(),conversation.getLastMessage().getActorId(),R.dimen.small_item_height),new LazyHeaders.Builder().setHeader("String_Node_Str","String_Node_Str").setHeader("String_Node_Str",ApiUtils.getUserAgent()).build());
        GlideApp.with(context).asBitmap().diskCacheStrategy(DiskCacheStrategy.NONE).load(glideUrl).centerInside().override(smallAvatarSize,smallAvatarSize).apply(RequestOptions.bitmapTransform(new CircleCrop())).into(holder.dialogLastMessageUserAvatar);
      }
    }
  }
 else {
    holder.dialogDate.setVisibility(View.GONE);
    holder.dialogLastMessageUserAvatar.setVisibility(View.GONE);
    holder.dialogLastMessage.setText(R.string.nc_no_messages_yet);
  }
  int avatarSize=Math.round(context.getResources().getDimension(R.dimen.avatar_size));
  holder.dialogAvatar.setVisibility(View.VISIBLE);
switch (conversation.getType()) {
case ROOM_TYPE_ONE_TO_ONE_CALL:
    holder.onlineIndicator.setVisibility(View.VISIBLE);
  if (conversation.getCount() > 0) {
    if (conversation.getCount() == 2 || (conversation.getCount() == 1 && conversation.getSessionId().equals("String_Node_Str"))) {
      holder.onlineIndicator.setBackground(context.getDrawable(R.drawable.shape_bubble_online));
    }
 else {
      holder.onlineIndicator.setBackground(context.getDrawable(R.drawable.shape_bubble_offline));
    }
  }
 else {
    holder.onlineIndicator.setBackground(context.getDrawable(R.drawable.shape_bubble_offline));
  }
if (!TextUtils.isEmpty(conversation.getName())) {
  GlideUrl glideUrl=new GlideUrl(ApiUtils.getUrlForAvatarWithName(userEntity.getBaseUrl(),conversation.getName(),R.dimen.avatar_size),new LazyHeaders.Builder().setHeader("String_Node_Str","String_Node_Str").setHeader("String_Node_Str",ApiUtils.getUserAgent()).build());
  GlideApp.with(context).asBitmap().diskCacheStrategy(DiskCacheStrategy.NONE).load(glideUrl).centerInside().override(avatarSize,avatarSize).apply(RequestOptions.bitmapTransform(new CircleCrop())).into(holder.dialogAvatar);
}
 else {
  holder.dialogAvatar.setVisibility(View.GONE);
}
break;
case ROOM_GROUP_CALL:
holder.onlineIndicator.setVisibility(View.GONE);
GlideApp.with(context).asBitmap().diskCacheStrategy(DiskCacheStrategy.NONE).load(R.drawable.ic_group_white_24px).centerInside().override(avatarSize,avatarSize).apply(RequestOptions.bitmapTransform(new CircleCrop())).into(holder.dialogAvatar);
break;
case ROOM_PUBLIC_CALL:
holder.onlineIndicator.setVisibility(View.GONE);
GlideApp.with(context).asBitmap().diskCacheStrategy(DiskCacheStrategy.NONE).load(R.drawable.ic_link_white_24px).centerInside().override(avatarSize,avatarSize).apply(RequestOptions.bitmapTransform(new CircleCrop())).into(holder.dialogAvatar);
break;
default :
holder.onlineIndicator.setVisibility(View.GONE);
holder.dialogAvatar.setVisibility(View.GONE);
}
}

Fixed version (ground truth):
@Override public void bindViewHolder(FlexibleAdapter<IFlexible> adapter,ConversationItemViewHolder holder,int position,List<Object> payloads){
  Context context=NextcloudTalkApplication.getSharedApplication().getApplicationContext();
  if (adapter.hasFilter()) {
    FlexibleUtils.highlightText(holder.dialogName,conversation.getDisplayName(),String.valueOf(adapter.getFilter(String.class)),NextcloudTalkApplication.getSharedApplication().getResources().getColor(R.color.colorPrimary));
  }
 else {
    holder.dialogName.setText(conversation.getDisplayName());
  }
  if (conversation.getUnreadMessages() > 0) {
    holder.dialogUnreadBubble.setVisibility(View.VISIBLE);
    if (conversation.getUnreadMessages() < 10) {
      holder.dialogUnreadBubble.setText(Long.toString(conversation.getUnreadMessages()));
    }
 else {
      holder.dialogUnreadBubble.setText("String_Node_Str");
    }
    if (conversation.isUnreadMention()) {
      holder.dialogUnreadBubble.setBackground(context.getDrawable(R.drawable.bubble_circle_unread_mention));
    }
 else {
      holder.dialogUnreadBubble.setBackground(context.getDrawable(R.drawable.bubble_circle_unread));
    }
  }
 else {
    holder.dialogUnreadBubble.setVisibility(View.GONE);
  }
  String authorDisplayName="String_Node_Str";
  if (conversation.isHasPassword()) {
    holder.passwordProtectedRoomImageView.setVisibility(View.VISIBLE);
  }
 else {
    holder.passwordProtectedRoomImageView.setVisibility(View.GONE);
  }
  if (conversation.isPinned()) {
    holder.pinnedConversationImageView.setVisibility(View.VISIBLE);
  }
 else {
    holder.pinnedConversationImageView.setVisibility(View.GONE);
  }
  if (conversation.getLastMessage() != null) {
    holder.dialogDate.setVisibility(View.VISIBLE);
    holder.dialogDate.setText(DateUtils.getRelativeTimeSpanString(conversation.getLastActivity() * 1000L,System.currentTimeMillis(),0,DateUtils.FORMAT_ABBREV_RELATIVE));
    if (conversation.getType() == Conversation.RoomType.ROOM_TYPE_ONE_TO_ONE_CALL) {
      holder.dialogLastMessageUserAvatar.setVisibility(View.GONE);
      holder.dialogLastMessage.setText(conversation.getLastMessage().getText());
    }
 else {
      holder.dialogLastMessageUserAvatar.setVisibility(View.VISIBLE);
      if (conversation.getLastMessage().getActorId().equals(userEntity.getUserId())) {
        authorDisplayName=context.getString(R.string.nc_chat_you) + "String_Node_Str";
      }
 else {
        if (!TextUtils.isEmpty(conversation.getLastMessage().getActorDisplayName())) {
          authorDisplayName=conversation.getLastMessage().getActorDisplayName() + "String_Node_Str";
        }
 else {
          authorDisplayName=context.getString(R.string.nc_nick_guest) + "String_Node_Str";
        }
      }
      String fullString=authorDisplayName + conversation.getLastMessage().getText();
      Spannable spannableString=new SpannableString(fullString);
      final StyleSpan boldStyleSpan=new StyleSpan(Typeface.BOLD);
      spannableString.setSpan(boldStyleSpan,0,fullString.indexOf("String_Node_Str") + 1,Spannable.SPAN_INCLUSIVE_INCLUSIVE);
      holder.dialogLastMessage.setText(spannableString);
      holder.dialogLastMessageUserAvatar.setVisibility(View.VISIBLE);
      int smallAvatarSize=Math.round(context.getResources().getDimension(R.dimen.small_item_height));
      if (conversation.getLastMessage().getActorType().equals("String_Node_Str")) {
        TextDrawable drawable=TextDrawable.builder().beginConfig().bold().endConfig().buildRound(String.valueOf(authorDisplayName.charAt(0)),context.getResources().getColor(R.color.nc_grey));
        holder.dialogLastMessageUserAvatar.setImageDrawable(drawable);
      }
 else {
        GlideUrl glideUrl=new GlideUrl(ApiUtils.getUrlForAvatarWithName(userEntity.getBaseUrl(),conversation.getLastMessage().getActorId(),R.dimen.small_item_height),new LazyHeaders.Builder().setHeader("String_Node_Str","String_Node_Str").setHeader("String_Node_Str",ApiUtils.getUserAgent()).build());
        GlideApp.with(context).asBitmap().diskCacheStrategy(DiskCacheStrategy.NONE).load(glideUrl).centerInside().override(smallAvatarSize,smallAvatarSize).apply(RequestOptions.bitmapTransform(new CircleCrop())).into(holder.dialogLastMessageUserAvatar);
      }
    }
  }
 else {
    holder.dialogDate.setVisibility(View.GONE);
    holder.dialogLastMessageUserAvatar.setVisibility(View.GONE);
    holder.dialogLastMessage.setText(R.string.nc_no_messages_yet);
  }
  int avatarSize=Math.round(context.getResources().getDimension(R.dimen.avatar_size));
  holder.dialogAvatar.setVisibility(View.VISIBLE);
switch (conversation.getType()) {
case ROOM_TYPE_ONE_TO_ONE_CALL:
    holder.onlineIndicator.setVisibility(View.VISIBLE);
  if (conversation.getCount() > 0) {
    if (conversation.getCount() == 2 || (conversation.getCount() == 1 && conversation.getSessionId().equals("String_Node_Str"))) {
      holder.onlineIndicator.setBackground(context.getDrawable(R.drawable.shape_bubble_online));
    }
 else {
      holder.onlineIndicator.setBackground(context.getDrawable(R.drawable.shape_bubble_offline));
    }
  }
 else {
    holder.onlineIndicator.setBackground(context.getDrawable(R.drawable.shape_bubble_offline));
  }
if (!TextUtils.isEmpty(conversation.getName())) {
  GlideUrl glideUrl=new GlideUrl(ApiUtils.getUrlForAvatarWithName(userEntity.getBaseUrl(),conversation.getName(),R.dimen.avatar_size),new LazyHeaders.Builder().setHeader("String_Node_Str","String_Node_Str").setHeader("String_Node_Str",ApiUtils.getUserAgent()).build());
  GlideApp.with(context).asBitmap().diskCacheStrategy(DiskCacheStrategy.NONE).load(glideUrl).centerInside().override(avatarSize,avatarSize).apply(RequestOptions.bitmapTransform(new CircleCrop())).into(holder.dialogAvatar);
}
 else {
  holder.dialogAvatar.setVisibility(View.GONE);
}
break;
case ROOM_GROUP_CALL:
holder.onlineIndicator.setVisibility(View.GONE);
GlideApp.with(context).asBitmap().diskCacheStrategy(DiskCacheStrategy.NONE).load(R.drawable.ic_group_white_24px).centerInside().override(avatarSize,avatarSize).apply(RequestOptions.bitmapTransform(new CircleCrop())).into(holder.dialogAvatar);
break;
case ROOM_PUBLIC_CALL:
holder.onlineIndicator.setVisibility(View.GONE);
GlideApp.with(context).asBitmap().diskCacheStrategy(DiskCacheStrategy.NONE).load(R.drawable.ic_link_white_24px).centerInside().override(avatarSize,avatarSize).apply(RequestOptions.bitmapTransform(new CircleCrop())).into(holder.dialogAvatar);
break;
default :
holder.onlineIndicator.setVisibility(View.GONE);
holder.dialogAvatar.setVisibility(View.GONE);
}
}