mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 00:39:14 +01:00
Simplify viewer check
This commit is contained in:
parent
921169b3ad
commit
c7cdb950ce
@ -73,9 +73,7 @@ class ReaderSettingsSheet(private val activity: ReaderActivity) : BottomSheetDia
|
|||||||
viewer.onItemSelectedListener = IgnoreFirstSpinnerListener { position ->
|
viewer.onItemSelectedListener = IgnoreFirstSpinnerListener { position ->
|
||||||
activity.presenter.setMangaViewer(position)
|
activity.presenter.setMangaViewer(position)
|
||||||
|
|
||||||
val item = viewer.adapter.getItem(position)
|
if (activity.presenter.getMangaViewer() == ReaderActivity.WEBTOON) {
|
||||||
if (item == context.getString(R.string.webtoon_viewer) ||
|
|
||||||
(item == context.getString(R.string.default_viewer) && preferences.defaultViewer() == ReaderActivity.WEBTOON)) {
|
|
||||||
initWebtoonPreferences()
|
initWebtoonPreferences()
|
||||||
} else {
|
} else {
|
||||||
initPagerPreferences()
|
initPagerPreferences()
|
||||||
|
Loading…
Reference in New Issue
Block a user