|
@@ -7,6 +7,7 @@ import androidx.core.view.isVisible
|
|
|
import androidx.core.widget.NestedScrollView
|
|
|
import androidx.lifecycle.lifecycleScope
|
|
|
import eu.kanade.tachiyomi.R
|
|
|
+import eu.kanade.tachiyomi.data.preference.PreferenceValues
|
|
|
import eu.kanade.tachiyomi.databinding.ReaderReadingModeSettingsBinding
|
|
|
import eu.kanade.tachiyomi.ui.reader.ReaderActivity
|
|
|
import eu.kanade.tachiyomi.ui.reader.viewer.pager.PagerViewer
|
|
@@ -68,7 +69,7 @@ class ReaderReadingModeSettings @JvmOverloads constructor(context: Context, attr
|
|
|
binding.webtoonPrefsGroup.root.isVisible = false
|
|
|
binding.pagerPrefsGroup.root.isVisible = true
|
|
|
|
|
|
- binding.pagerPrefsGroup.tappingInverted.bindToPreference(readerPreferences.pagerNavInverted())
|
|
|
+ binding.pagerPrefsGroup.tappingInverted.bindToPreference(readerPreferences.pagerNavInverted(), PreferenceValues.TappingInvertMode::class.java)
|
|
|
binding.pagerPrefsGroup.navigatePan.bindToPreference(readerPreferences.navigateToPan())
|
|
|
|
|
|
binding.pagerPrefsGroup.pagerNav.bindToPreference(readerPreferences.navigationModePager())
|
|
@@ -104,7 +105,7 @@ class ReaderReadingModeSettings @JvmOverloads constructor(context: Context, attr
|
|
|
binding.pagerPrefsGroup.root.isVisible = false
|
|
|
binding.webtoonPrefsGroup.root.isVisible = true
|
|
|
|
|
|
- binding.webtoonPrefsGroup.tappingInverted.bindToPreference(readerPreferences.webtoonNavInverted())
|
|
|
+ binding.webtoonPrefsGroup.tappingInverted.bindToPreference(readerPreferences.webtoonNavInverted(), PreferenceValues.TappingInvertMode::class.java)
|
|
|
|
|
|
binding.webtoonPrefsGroup.webtoonNav.bindToPreference(readerPreferences.navigationModeWebtoon())
|
|
|
readerPreferences.navigationModeWebtoon()
|