mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-02-25 10:29:45 +02:00
Fix issue #471 - Takes value from reblog if not null
This commit is contained in:
parent
47dfc3f33c
commit
ba53e174ab
1 changed files with 7 additions and 2 deletions
|
@ -283,8 +283,13 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
||||||
statusToDeal.bookmarked = statusReturned.bookmarked;
|
statusToDeal.bookmarked = statusReturned.bookmarked;
|
||||||
|
|
||||||
if (!remote) {
|
if (!remote) {
|
||||||
|
if (statusReturned.reblog != null) {
|
||||||
|
statusToDeal.reblogs_count = statusReturned.reblog.reblogs_count;
|
||||||
|
statusToDeal.favourites_count = statusReturned.reblog.favourites_count;
|
||||||
|
} else {
|
||||||
statusToDeal.reblogs_count = statusReturned.reblogs_count;
|
statusToDeal.reblogs_count = statusReturned.reblogs_count;
|
||||||
statusToDeal.favourites_count = statusReturned.favourites_count;
|
statusToDeal.favourites_count = statusReturned.favourites_count;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
switch (typeOfAction) {
|
switch (typeOfAction) {
|
||||||
case REBLOG_ACTION:
|
case REBLOG_ACTION:
|
||||||
|
|
Loading…
Reference in a new issue