mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 14:37:59 +01:00
disable Pull-to-refresh automatically at enabling horizontal scroll
This commit is contained in:
parent
5d756b5a60
commit
db2e0dc776
1 changed files with 5 additions and 0 deletions
|
@ -203,6 +203,11 @@ class SettingsActivity : SimpleActivity() {
|
||||||
settings_scroll_horizontally_holder.setOnClickListener {
|
settings_scroll_horizontally_holder.setOnClickListener {
|
||||||
settings_scroll_horizontally.toggle()
|
settings_scroll_horizontally.toggle()
|
||||||
config.scrollHorizontally = settings_scroll_horizontally.isChecked
|
config.scrollHorizontally = settings_scroll_horizontally.isChecked
|
||||||
|
|
||||||
|
if (config.scrollHorizontally) {
|
||||||
|
config.enablePullToRefresh = false
|
||||||
|
settings_enable_pull_to_refresh.isChecked = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue