aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-07-13 17:19:19 -0700
committerGitHub <noreply@github.com>2017-07-13 17:19:19 -0700
commitc3f1fc6a8b3216442a018bb04843dfa68d738918 (patch)
tree1eb9dc13fc46e7ed98550f6edbdd015af9c106b8 /app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt
parent1d364a1f5a8322ce8fbe200fcc9f5a41f91b41e8 (diff)
downloadfrost-c3f1fc6a8b3216442a018bb04843dfa68d738918.tar.gz
frost-c3f1fc6a8b3216442a018bb04843dfa68d738918.tar.bz2
frost-c3f1fc6a8b3216442a018bb04843dfa68d738918.zip
Separate pref strings, add notifs control, fix searchview (#60)v1.2.2
* Separate pref strings and add notif controls * Add overlay toggle and minor cleanups * Fix search view
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt b/app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt
index b912c103..7ce546b3 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt
@@ -1,6 +1,7 @@
package com.pitchedapps.frost.settings
import ca.allanwang.kau.kpref.activity.KPrefAdapterBuilder
+import com.pitchedapps.frost.MainActivity
import com.pitchedapps.frost.R
import com.pitchedapps.frost.SettingsActivity
import com.pitchedapps.frost.utils.Prefs
@@ -14,6 +15,10 @@ fun SettingsActivity.getBehaviourPrefs(): KPrefAdapterBuilder.() -> Unit = {
descRes = R.string.fancy_animations_desc
}
+ checkbox(R.string.overlay_swipe, { Prefs.overlayEnabled }, { Prefs.overlayEnabled = it; setResult(MainActivity.REQUEST_REFRESH) }) {
+ descRes = R.string.overlay_swipe_desc
+ }
+
checkbox(R.string.overlay_full_screen_swipe, { Prefs.overlayFullScreenSwipe }, { Prefs.overlayFullScreenSwipe = it }) {
descRes = R.string.overlay_full_screen_swipe_desc
}