Merge branch 'devel' into feature/suggestions
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user