Fix #68 - action coloration not working for boosted statuses

pull/95/head
Thomas 3 years ago
parent 1ea6400c88
commit ae4bbd32e8

@ -680,7 +680,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
} }
}); });
} else { } else {
if (status.favourited) { if (statusToDeal.favourited) {
statusesVM.unFavourite(BaseMainActivity.currentInstance, BaseMainActivity.currentToken, statusToDeal.id) statusesVM.unFavourite(BaseMainActivity.currentInstance, BaseMainActivity.currentToken, statusToDeal.id)
.observe((LifecycleOwner) context, _status -> { .observe((LifecycleOwner) context, _status -> {
statusToDeal.favourited = _status.favourited; statusToDeal.favourited = _status.favourited;
@ -1544,7 +1544,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
int position = 0; int position = 0;
if (statusList != null) { if (statusList != null) {
for (Status _status : statusList) { for (Status _status : statusList) {
if (_status.id.compareTo(status.id) == 0) { if (_status.id.compareTo(status.id) == 0 || (_status.reblog != null && _status.reblog.id.compareTo(status.id) == 0)) {
break; break;
} }
position++; position++;

Loading…
Cancel
Save