mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 01:35:09 +01:00
Manhua no longer switches to LTR reader if the default reader is webtoon
This commit is contained in:
parent
610569cbc3
commit
caaddda040
@ -414,14 +414,16 @@ class ReaderPresenter(
|
||||
* Returns the viewer position used by this manga or the default one.
|
||||
*/
|
||||
fun getMangaViewer(): Int {
|
||||
val manga = manga ?: return preferences.defaultViewer()
|
||||
val default = preferences.defaultViewer()
|
||||
val manga = manga ?: return default
|
||||
val readerType = manga.defaultReaderType()
|
||||
if (manga.viewer == -1 ||
|
||||
(readerType == ReaderActivity.WEBTOON && readerType != manga.viewer)) {
|
||||
manga.viewer = readerType
|
||||
if (manga.viewer == -1 || (readerType == ReaderActivity.WEBTOON && readerType != manga.viewer)) {
|
||||
val cantSwitchToLTR =
|
||||
(readerType == ReaderActivity.LEFT_TO_RIGHT && default != ReaderActivity.RIGHT_TO_LEFT)
|
||||
manga.viewer = if (cantSwitchToLTR) 0 else readerType
|
||||
db.updateMangaViewer(manga).asRxObservable().subscribe()
|
||||
}
|
||||
return if (manga.viewer == 0) preferences.defaultViewer() else manga.viewer
|
||||
return if (manga.viewer == 0) default else manga.viewer
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user