remove redundant toHtml from StatusBaseViewHolder (#1625)

main
Konrad Pozniak 5 years ago committed by GitHub
parent 0244ee1865
commit 179a10828a
  1. 8
      app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java

@ -473,16 +473,12 @@ public abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
setAttachmentClickListener(imageView, listener, i, attachment, true);
}
final String hiddenContentText;
if (sensitive) {
hiddenContentText = context.getString(R.string.status_sensitive_media_title);
sensitiveMediaWarning.setText(R.string.status_sensitive_media_title);
} else {
hiddenContentText = context.getString(R.string.status_media_hidden_title);
sensitiveMediaWarning.setText(R.string.status_media_hidden_title);
}
sensitiveMediaWarning.setText(HtmlUtils.fromHtml(hiddenContentText));
sensitiveMediaWarning.setVisibility(showingContent ? View.GONE : View.VISIBLE);
sensitiveMediaShow.setVisibility(showingContent ? View.VISIBLE : View.GONE);
sensitiveMediaShow.setOnClickListener(v -> {

Loading…
Cancel
Save