Simplify viewer check

This commit is contained in:
arkon 2020-03-10 18:23:14 -04:00
parent 921169b3ad
commit c7cdb950ce

View file

@ -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()