Fixed content warnings not being reset properly, causing them to appear in other statuses.

This commit is contained in:
Vavassor 2017-02-01 04:25:22 -05:00
parent aec83c70fc
commit 62ff735878
1 changed files with 8 additions and 1 deletions

View File

@ -279,6 +279,11 @@ public class StatusViewHolder extends RecyclerView.ViewHolder {
});
}
public void hideSpoilerText() {
contentWarningBar.setVisibility(View.GONE);
content.setVisibility(View.VISIBLE);
}
public void setupButtons(final StatusActionListener listener, final int position) {
avatar.setOnClickListener(new View.OnClickListener() {
@Override
@ -350,7 +355,9 @@ public class StatusViewHolder extends RecyclerView.ViewHolder {
if (status.getVisibility() == Status.Visibility.PRIVATE) {
disableReblogging();
}
if (!status.getSpoilerText().isEmpty()) {
if (status.getSpoilerText().isEmpty()) {
hideSpoilerText();
} else {
setSpoilerText(status.getSpoilerText());
}
}