Bladeren bron

Simplify viewer check

arkon 5 jaren geleden
bovenliggende
commit
c7cdb950ce
1 gewijzigde bestanden met toevoegingen van 1 en 3 verwijderingen
  1. 1 3
      app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderSettingsSheet.kt

+ 1 - 3
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()