From db2e0dc7766026773e0fd855fe49fa149dd3a211 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 24 Apr 2018 10:36:50 +0200 Subject: [PATCH] disable Pull-to-refresh automatically at enabling horizontal scroll --- .../simplemobiletools/gallery/activities/SettingsActivity.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt index 939e68f1d..e50c30caf 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt @@ -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 + } } }