From 921169b3adc12893255b6c05272364035635ffee Mon Sep 17 00:00:00 2001 From: arkon Date: Mon, 9 Mar 2020 19:51:38 -0400 Subject: [PATCH] Fix sheet pager setting visibility when default is webtoon --- .../java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt index e32f6d6cd9..68539dc808 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt @@ -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()