fix: favorites list not showing progress
This commit is contained in:
parent
f2b9cc3b3e
commit
2662017fb7
1 changed files with 6 additions and 0 deletions
|
@ -419,6 +419,12 @@ class AnilistQueries {
|
||||||
|
|
||||||
sorted["Favourites"] = favMedia(anime)
|
sorted["Favourites"] = favMedia(anime)
|
||||||
sorted["Favourites"]?.sortWith(compareBy { it.userFavOrder })
|
sorted["Favourites"]?.sortWith(compareBy { it.userFavOrder })
|
||||||
|
//favMedia doesn't fill userProgress, so we need to fill it manually by searching :(
|
||||||
|
sorted["Favourites"]?.forEach { fav ->
|
||||||
|
all.find { it.id == fav.id }?.let {
|
||||||
|
fav.userProgress = it.userProgress
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sorted["All"] = all
|
sorted["All"] = all
|
||||||
val listSort: String = if (anime) PrefManager.getVal(PrefName.AnimeListSortOrder)
|
val listSort: String = if (anime) PrefManager.getVal(PrefName.AnimeListSortOrder)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue