From c7cdb950ce08bfbcdb22dd2e6b015789d78b9c2c Mon Sep 17 00:00:00 2001 From: arkon Date: Tue, 10 Mar 2020 18:23:14 -0400 Subject: [PATCH] Simplify viewer check --- .../java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 68539dc80..d3fb703c9 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,9 +73,7 @@ class ReaderSettingsSheet(private val activity: ReaderActivity) : BottomSheetDia viewer.onItemSelectedListener = IgnoreFirstSpinnerListener { position -> activity.presenter.setMangaViewer(position) - 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)) { + if (activity.presenter.getMangaViewer() == ReaderActivity.WEBTOON) { initWebtoonPreferences() } else { initPagerPreferences()