Fixed content warnings not being reset properly, causing them to appear in other statuses.
This commit is contained in:
parent
aec83c70fc
commit
62ff735878
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue