Manhua type support to AutoWebtoonMode (#1248)

* AutoWebtoonMode: manhua
This commit is contained in:
mrtear 2025-10-29 18:54:20 -06:00 committed by GitHub
parent c0a7bd9332
commit dd69b6f9c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,7 @@ fun Manga.mangaType(sourceName: String? = Injekt.get<SourceManager>().get(source
* read types
*/
fun Manga.defaultReaderType(type: MangaType = mangaType()): Int? {
return if (type == MangaType.TYPE_MANHWA || type == MangaType.TYPE_WEBTOON) {
return if (type in setOf(MangaType.TYPE_MANHUA, MangaType.TYPE_MANHWA, MangaType.TYPE_WEBTOON)) {
ReadingMode.WEBTOON.flagValue
} else {
null