mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
Fix #68 - action coloration not working for boosted statuses
This commit is contained in:
parent
1ea6400c88
commit
ae4bbd32e8
1 changed files with 2 additions and 2 deletions
|
@ -680,7 +680,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
|||
}
|
||||
});
|
||||
} else {
|
||||
if (status.favourited) {
|
||||
if (statusToDeal.favourited) {
|
||||
statusesVM.unFavourite(BaseMainActivity.currentInstance, BaseMainActivity.currentToken, statusToDeal.id)
|
||||
.observe((LifecycleOwner) context, _status -> {
|
||||
statusToDeal.favourited = _status.favourited;
|
||||
|
@ -1544,7 +1544,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
|||
int position = 0;
|
||||
if (statusList != null) {
|
||||
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;
|
||||
}
|
||||
position++;
|
||||
|
|
Loading…
Reference in a new issue