Source:
public void refreshView(State state) { super.refreshView(state); stateFromActivity = state; final Product product = stateFromActivity.getProduct(); if (isNotBlank(product.getCreator())) { String[] createdDate = getDateTime(product.getCreatedDateTime()); String creatorTxt = getString(R.string.creator_history, createdDate[0], createdDate[1],product.getCreator()); creatorText.setMovementMethod(LinkMovementMethod.getInstance()); creatorText.setText(creatorTxt + " "); creatorText.append(getContributorsTag(product.getCreator())); } else { creatorText.setVisibility(View.INVISIBLE); } if (isNotBlank(product.getLastModifiedBy())) { String[] lastEditDate = getDateTime(product.getLastModifiedTime()); String editorTxt = getString(R.string.last_editor_history, lastEditDate[0], lastEditDate[1], product.getLastModifiedBy()); lastEditorText.setMovementMethod(LinkMovementMethod.getInstance()); lastEditorText.setText(editorTxt + " "); lastEditorText.append(getContributorsTag(product.getLastModifiedBy())); } else { lastEditorText.setVisibility(View.INVISIBLE); } if (!product.getEditors().isEmpty()) { String otherEditorsTxt = getString(R.string.other_editors); otherEditorsText.setMovementMethod(LinkMovementMethod.getInstance()); otherEditorsText.setText(otherEditorsTxt + " "); for (int i = 0; i < product.getEditors().size() - 1; i++) { final String editor = product.getEditors().get(i); otherEditorsText.append(getContributorsTag(editor).subSequence(0, editor.length())); otherEditorsText.append(", "); } otherEditorsText.append(getContributorsTag(product.getEditors().get(product.getEditors().size() - 1))); } else { otherEditorsText.setVisibility(View.INVISIBLE); } if (!product.getStatesTags().isEmpty()) { statesText.setMovementMethod(LinkMovementMethod.getInstance()); statesText.setText(""); for (int i = 0; i < product.getStatesTags().size(); i++) { statesText.append(getStatesTag(product.getStatesTags().get(i).split(":")[1])); statesText.append("\n "); } } }

Target:
public void refreshView(State state) { super.refreshView(state); stateFromActivity = state; final Product product = stateFromActivity.getProduct(); if (isNotBlank(product.getCreator())) { String[] createdDate = getDateTime(product.getCreatedDateTime()); String creatorTxt = getString(R.string.creator_history, createdDate[0], createdDate[1],product.getCreator()); creatorText.setMovementMethod(LinkMovementMethod.getInstance()); creatorText.setText(creatorTxt); } else { creatorText.setVisibility(View.INVISIBLE); } if (isNotBlank(product.getLastModifiedBy())) { String[] lastEditDate = getDateTime(product.getLastModifiedTime()); String editorTxt = getString(R.string.last_editor_history, lastEditDate[0], lastEditDate[1], product.getLastModifiedBy()); lastEditorText.setMovementMethod(LinkMovementMethod.getInstance()); lastEditorText.setText(editorTxt); } else { lastEditorText.setVisibility(View.INVISIBLE); } if (!product.getEditors().isEmpty()) { String otherEditorsTxt = getString(R.string.other_editors); otherEditorsText.setMovementMethod(LinkMovementMethod.getInstance()); otherEditorsText.setText(otherEditorsTxt + " "); for (int i = 0; i < product.getEditors().size() - 1; i++) { final String editor = product.getEditors().get(i); otherEditorsText.append(getContributorsTag(editor).subSequence(0, editor.length())); otherEditorsText.append(", "); } otherEditorsText.append(getContributorsTag(product.getEditors().get(product.getEditors().size() - 1))); } else { otherEditorsText.setVisibility(View.INVISIBLE); } if (!product.getStatesTags().isEmpty()) { statesText.setMovementMethod(LinkMovementMethod.getInstance()); statesText.setText(""); for (int i = 0; i < product.getStatesTags().size(); i++) { statesText.append(getStatesTag(product.getStatesTags().get(i).split(":")[1])); statesText.append("\n "); } } }