Source:
<code>private void bindViewHolderToThreadRow(DiscussionThreadViewHolder holder) { holder.threadTitleTextView.setText(discussionThread.getTitle()); holder.threadBodyTextView.setText(DiscussionTextUtils.parseHtml(discussionThread.getRenderedBody())); holder.threadVisibilityTextView.setText(discussionThread.getGroupName() == null ? <START> context.getString(R.string.discussion_post_visibility_everyone) : <END> ResourceUtil.getFormattedString( context.getResources(), R.string.discussion_post_visibility_cohort, "cohort", discussionThread.getGroupName())); holder.threadClosedIconImageView.setVisibility(discussionThread.isClosed() ? View.VISIBLE : View.GONE); holder.threadPinnedIconImageView.setVisibility(discussionThread.isPinned() ? View.VISIBLE : View.GONE); bindSocialView(holder.socialLayoutViewHolder, discussionThread); DiscussionTextUtils.setAuthorAttributionText(holder.authorLayoutViewHolder.discussionAuthorTextView, discussionThread, new Runnable() { @Override public void run() { listener.onClickAuthor(discussionThread.getAuthor()); } }); bindNumberResponsesView(holder.numberResponsesViewHolder); holder.discussionReportViewHolder.reportLayout.setOnClickListener(new View.OnClickListener() { public void onClick(final View v) { FlagThreadTask task = new FlagThreadTask(context, discussionThread, !discussionThread.isAbuseFlagged()) { @Override public void onSuccess(DiscussionThread topicThread) { if (topicThread != null) { CourseDiscussionResponsesAdapter.this.discussionThread = topicThread; notifyDataSetChanged(); } } @Override public void onException(Exception ex) { logger.error(ex); } }; task.execute(); } }); holder.discussionReportViewHolder.setReported(discussionThread.isAbuseFlagged()); }</code><technical_language>getString() replaced getText() here, is more versatile, CharSequence is required here</technical_language>

Target:
private void bindViewHolderToThreadRow(DiscussionThreadViewHolder holder) { holder.threadTitleTextView.setText(discussionThread.getTitle()); holder.threadBodyTextView.setText(DiscussionTextUtils.parseHtml(discussionThread.getRenderedBody())); String groupName = discussionThread.getGroupName(); if (groupName == null) { holder.threadVisibilityTextView.setText(R.string.discussion_post_visibility_everyone); } else { holder.threadVisibilityTextView.setText(ResourceUtil.getFormattedString( context.getResources(), R.string.discussion_post_visibility_cohort, "cohort", groupName)); } holder.threadClosedIconImageView.setVisibility(discussionThread.isClosed() ? View.VISIBLE : View.GONE); holder.threadPinnedIconImageView.setVisibility(discussionThread.isPinned() ? View.VISIBLE : View.GONE); bindSocialView(holder.socialLayoutViewHolder, discussionThread); DiscussionTextUtils.setAuthorAttributionText(holder.authorLayoutViewHolder.discussionAuthorTextView, discussionThread, new Runnable() { @Override public void run() { listener.onClickAuthor(discussionThread.getAuthor()); } }); bindNumberResponsesView(holder.numberResponsesViewHolder); holder.discussionReportViewHolder.reportLayout.setOnClickListener(new View.OnClickListener() { public void onClick(final View v) { FlagThreadTask task = new FlagThreadTask(context, discussionThread, !discussionThread.isAbuseFlagged()) { @Override public void onSuccess(DiscussionThread topicThread) { if (topicThread != null) { CourseDiscussionResponsesAdapter.this.discussionThread = topicThread; notifyDataSetChanged(); } } @Override public void onException(Exception ex) { logger.error(ex); } }; task.execute(); } }); holder.discussionReportViewHolder.setReported(discussionThread.isAbuseFlagged()); }