Fix issue with content warnings not being expanded from a11y delegate (#1167)

This commit is contained in:
Ivan Kupalov 2019-03-30 08:10:34 +00:00 committed by Konrad Pozniak
commit b66582654d
2 changed files with 9 additions and 1 deletions

View file

@ -124,6 +124,10 @@ public abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
username.setText(usernameText);
}
public void toggleContentWarning() {
contentWarningButton.toggle();
}
protected void setSpoilerAndContent(boolean expanded,
@NonNull Spanned content,
@Nullable String spoilerText,