remove redundant toHtml from StatusBaseViewHolder (#1625)
This commit is contained in:
parent
bec1ce8b09
commit
441a1c1f95
|
@ -473,16 +473,12 @@ public abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
|
||||||
setAttachmentClickListener(imageView, listener, i, attachment, true);
|
setAttachmentClickListener(imageView, listener, i, attachment, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
final String hiddenContentText;
|
|
||||||
if (sensitive) {
|
if (sensitive) {
|
||||||
hiddenContentText = context.getString(R.string.status_sensitive_media_title);
|
sensitiveMediaWarning.setText(R.string.status_sensitive_media_title);
|
||||||
} else {
|
} 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);
|
sensitiveMediaWarning.setVisibility(showingContent ? View.GONE : View.VISIBLE);
|
||||||
sensitiveMediaShow.setVisibility(showingContent ? View.VISIBLE : View.GONE);
|
sensitiveMediaShow.setVisibility(showingContent ? View.VISIBLE : View.GONE);
|
||||||
sensitiveMediaShow.setOnClickListener(v -> {
|
sensitiveMediaShow.setOnClickListener(v -> {
|
||||||
|
|
Loading…
Reference in New Issue