Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Fix sheet pager setting visibility when default is webtoon

Cette révision appartient à :
arkon 2020-03-09 19:51:38 -04:00
Parent d7d3731567
révision 921169b3ad

Voir le fichier

@ -73,7 +73,9 @@ class ReaderSettingsSheet(private val activity: ReaderActivity) : BottomSheetDia
viewer.onItemSelectedListener = IgnoreFirstSpinnerListener { position ->
activity.presenter.setMangaViewer(position)
if (viewer.adapter.getItem(position) == context.getString(R.string.webtoon_viewer)) {
val item = viewer.adapter.getItem(position)
if (item == context.getString(R.string.webtoon_viewer) ||
(item == context.getString(R.string.default_viewer) && preferences.defaultViewer() == ReaderActivity.WEBTOON)) {
initWebtoonPreferences()
} else {
initPagerPreferences()