mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-11 15:00:53 +01:00
Fix sheet pager setting visibility when default is webtoon
This commit is contained in:
parent
d7d3731567
commit
921169b3ad
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue