Merge branch 'devel' into feature/suggestions

This commit is contained in:
Koitharu
2021-09-26 17:26:53 +03:00
314 changed files with 9169 additions and 2760 deletions

View File

@@ -24,7 +24,11 @@ class SuggestionsViewModel(
createListModeFlow()
) { list, mode ->
when {
list.isEmpty() -> listOf(EmptyState(R.string.text_suggestion_holder))
list.isEmpty() -> listOf(EmptyState(
icon = R.drawable.ic_book_cross,
textPrimary = R.string.nothing_found,
textSecondary = R.string.text_suggestion_holder,
))
else -> mapList(list, mode)
}
}.onFirst {

View File

@@ -26,10 +26,10 @@ class SuggestionsWorker(appContext: Context, params: WorkerParameters) :
for ((source, tags) in tagsBySources) {
val repo = mangaRepositoryOf(source)
tags.flatMapTo(rawResults) { tag ->
repo.getList(
repo.getList2(
offset = 0,
sortOrder = SortOrder.UPDATED,
tag = tag,
tags = setOf(tag),
)
}
}