Source:
public void bind(TimelineItem.TimelineComment item) { mBoundItem = item; User user = item.comment.getUser(); Date createdAt = item.comment.getCreatedAt(); Date updatedAt = item.comment.getUpdatedAt(); AvatarHandler.assignAvatar(ivGravatar, user); ivGravatar.setTag(user); tvTimestamp.setText(StringUtils.formatRelativeTime(mContext, createdAt, true)); if (createdAt.equals(updatedAt) || item.getCommitComment() != null) { tvEditTimestamp.setVisibility(View.GONE); } else { tvEditTimestamp.setText(StringUtils.formatRelativeTime(mContext, updatedAt, true)); tvEditTimestamp.setVisibility(View.VISIBLE); } mImageGetter.bind(tvDesc, item.comment.getBodyHtml(), item.comment.getId()); String login = ApiHelpers.getUserLogin(mContext, item.comment.getUser()); SpannableString userName = new SpannableString(login); userName.setSpan(new StyleSpan(Typeface.BOLD), 0, userName.length(), 0); tvExtra.setText(userName); if (mCallback.canQuote()) { tvDesc.setCustomSelectionActionModeCallback( new UiUtils.QuoteActionModeCallback(tvDesc) { @Override public void onTextQuoted(CharSequence text) { mCallback.quoteText(text); } }); } else { tvDesc.setCustomSelectionActionModeCallback(null); } ivMenu.setTag(item); reactions.setReactions(item.comment.getReactions()); String ourLogin = Gh4Application.get().getAuthLogin(); boolean canEdit = ApiHelpers.loginEquals(user, ourLogin) || ApiHelpers.loginEquals(mRepoOwner, ourLogin); Menu menu = mPopupMenu.getMenu(); menu.findItem(R.id.edit).setVisible(canEdit); menu.findItem(R.id.delete).setVisible(canEdit); menu.findItem(R.id.view_in_file).setVisible( item.file != null && item.getCommitComment() != null && item.getCommitComment().getPosition() != -1); }

Target:
public void bind(TimelineItem.TimelineComment item) { mBoundItem = item; User user = item.comment.getUser(); Date createdAt = item.comment.getCreatedAt(); Date updatedAt = item.comment.getUpdatedAt(); AvatarHandler.assignAvatar(ivGravatar, user); ivGravatar.setTag(user); tvTimestamp.setText(StringUtils.formatRelativeTime(mContext, createdAt, true)); if (createdAt.equals(updatedAt) || item.getCommitComment() != null) { tvEditTimestamp.setVisibility(View.GONE); } else { tvEditTimestamp.setText(StringUtils.formatRelativeTime(mContext, updatedAt, true)); tvEditTimestamp.setVisibility(View.VISIBLE); } mImageGetter.bind(tvDesc, item.comment.getBodyHtml(), item.comment.getId()); String login = ApiHelpers.getUserLogin(mContext, item.comment.getUser()); SpannableString userName = new SpannableString(login); userName.setSpan(new StyleSpan(Typeface.BOLD), 0, userName.length(), 0); tvExtra.setText(userName); if (mCallback.canQuote()) { tvDesc.setCustomSelectionActionModeCallback(mQuoteActionModeCallback); } else { tvDesc.setCustomSelectionActionModeCallback(null); } ivMenu.setTag(item); reactions.setReactions(item.comment.getReactions()); String ourLogin = Gh4Application.get().getAuthLogin(); boolean canEdit = ApiHelpers.loginEquals(user, ourLogin) || ApiHelpers.loginEquals(mRepoOwner, ourLogin); Menu menu = mPopupMenu.getMenu(); menu.findItem(R.id.edit).setVisible(canEdit); menu.findItem(R.id.delete).setVisible(canEdit); menu.findItem(R.id.view_in_file).setVisible(item.file != null && item.getCommitComment() != null && item.getCommitComment().getPosition() != -1); }