fix media hidden default in ViewThreadFragment (#2295)

This commit is contained in:
Konrad Pozniak 2022-01-17 18:45:11 +01:00 committed by GitHub
parent a026a3261b
commit f29e46ad55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,10 +105,10 @@ public final class ViewThreadFragment extends SFragment implements
private final PairedList<Status, StatusViewData.Concrete> statuses = private final PairedList<Status, StatusViewData.Concrete> statuses =
new PairedList<>(new Function<Status, StatusViewData.Concrete>() { new PairedList<>(new Function<Status, StatusViewData.Concrete>() {
@Override @Override
public StatusViewData.Concrete apply(Status input) { public StatusViewData.Concrete apply(Status status) {
return ViewDataUtils.statusToViewData( return ViewDataUtils.statusToViewData(
input, status,
alwaysShowSensitiveMedia, alwaysShowSensitiveMedia || !status.getActionableStatus().getSensitive(),
alwaysOpenSpoiler, alwaysOpenSpoiler,
true true
); );