Minor reader cleanup

(cherry picked from commit 3ebf39bd55cffbf5dc4bfe1c39e91aa22fa93777)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt
#	app/src/main/res/values/arrays.xml
This commit is contained in:
arkon
2023-08-06 22:27:45 -04:00
committed by Jobobby04
parent fa80257af8
commit 71e0a02003
7 changed files with 31 additions and 69 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ fun Manga.mangaType(sourceName: String? = Injekt.get<SourceManager>().get(source
*/
fun Manga.defaultReaderType(type: MangaType = mangaType()): Int? {
return if (type == MangaType.TYPE_MANHWA || type == MangaType.TYPE_WEBTOON) {
ReadingModeType.WEBTOON.prefValue
ReadingModeType.WEBTOON.flagValue
} else {
null
}