disable Pull-to-refresh automatically at enabling horizontal scroll

This commit is contained in:
tibbi 2018-04-24 10:36:50 +02:00
parent 5d756b5a60
commit db2e0dc776
1 changed files with 5 additions and 0 deletions

View File

@ -203,6 +203,11 @@ class SettingsActivity : SimpleActivity() {
settings_scroll_horizontally_holder.setOnClickListener {
settings_scroll_horizontally.toggle()
config.scrollHorizontally = settings_scroll_horizontally.isChecked
if (config.scrollHorizontally) {
config.enablePullToRefresh = false
settings_enable_pull_to_refresh.isChecked = false
}
}
}