Merge branch 'devel' into feature/page-preload
This commit is contained in:
@@ -7,10 +7,7 @@ import org.koitharu.kotatsu.core.model.Manga
|
||||
import org.koitharu.kotatsu.core.model.MangaChapter
|
||||
import org.koitharu.kotatsu.core.model.MangaSource
|
||||
import org.koitharu.kotatsu.core.model.MangaTag
|
||||
import org.koitharu.kotatsu.utils.ext.getBooleanOrDefault
|
||||
import org.koitharu.kotatsu.utils.ext.getLongOrDefault
|
||||
import org.koitharu.kotatsu.utils.ext.getStringOrNull
|
||||
import org.koitharu.kotatsu.utils.ext.mapToSet
|
||||
import org.koitharu.kotatsu.utils.ext.*
|
||||
|
||||
class MangaIndex(source: String?) {
|
||||
|
||||
@@ -61,7 +58,7 @@ class MangaIndex(source: String?) {
|
||||
description = json.getStringOrNull("description"),
|
||||
tags = json.getJSONArray("tags").mapToSet { x ->
|
||||
MangaTag(
|
||||
title = x.getString("title"),
|
||||
title = x.getString("title").toTitleCase(),
|
||||
key = x.getString("key"),
|
||||
source = source
|
||||
)
|
||||
|
||||
@@ -32,7 +32,7 @@ class LocalListViewModel(
|
||||
val importProgress = MutableLiveData<Progress?>(null)
|
||||
private val listError = MutableStateFlow<Throwable?>(null)
|
||||
private val mangaList = MutableStateFlow<List<Manga>?>(null)
|
||||
private val headerModel = ListHeader(null, R.string.local_storage)
|
||||
private val headerModel = ListHeader(null, R.string.local_storage, null)
|
||||
private var importJob: Job? = null
|
||||
|
||||
override val content = combine(
|
||||
|
||||
Reference in New Issue
Block a user