Manga repository authorization support

This commit is contained in:
Koitharu
2021-09-08 07:27:25 +03:00
parent c4585c81e1
commit 593624fdb9
20 changed files with 312 additions and 78 deletions

View File

@@ -12,7 +12,6 @@ import org.koitharu.kotatsu.core.prefs.AppSettings
import org.koitharu.kotatsu.list.ui.MangaListViewModel
import org.koitharu.kotatsu.list.ui.model.*
import org.koitharu.kotatsu.utils.ext.asLiveDataDistinct
import java.util.*
class SearchViewModel(
private val repository: MangaRepository,
@@ -74,6 +73,7 @@ class SearchViewModel(
listError.value = null
val list = repository.getList(
offset = if (append) mangaList.value?.size ?: 0 else 0,
tags = null,
query = query
)
if (!append) {