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) {
|
public void setupButtons(final StatusActionListener listener, final int position) {
|
||||||
avatar.setOnClickListener(new View.OnClickListener() {
|
avatar.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
@ -350,7 +355,9 @@ public class StatusViewHolder extends RecyclerView.ViewHolder {
|
|||||||
if (status.getVisibility() == Status.Visibility.PRIVATE) {
|
if (status.getVisibility() == Status.Visibility.PRIVATE) {
|
||||||
disableReblogging();
|
disableReblogging();
|
||||||
}
|
}
|
||||||
if (!status.getSpoilerText().isEmpty()) {
|
if (status.getSpoilerText().isEmpty()) {
|
||||||
|
hideSpoilerText();
|
||||||
|
} else {
|
||||||
setSpoilerText(status.getSpoilerText());
|
setSpoilerText(status.getSpoilerText());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user