aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.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/utils/Prefs.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/utils/Prefs.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt b/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt
index 64ec08cd..d2e04898 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt
@@ -89,6 +89,12 @@ object Prefs : KPref() {
var notificationsInstantMessages: Boolean by kpref("notification_im", true)
+ var notificationVibrate: Boolean by kpref("notification_vibrate", true)
+
+ var notificationSound: Boolean by kpref("notification_sound", true)
+
+ var notificationLights: Boolean by kpref("notification_lights", true)
+
/**
* Cache like value to determine if user has or had pro
* In most cases, [com.pitchedapps.frost.utils.iab.IS_FROST_PRO] should be looked at instead
@@ -105,6 +111,8 @@ object Prefs : KPref() {
var searchBar: Boolean by kpref("search_bar", Showcase.experimentalDefault)
+ var overlayEnabled: Boolean by kpref("overlay_enabled", true)
+
var overlayFullScreenSwipe: Boolean by kpref("overlay_full_screen_swipe", true)
var viewpagerSwipe: Boolean by kpref("viewpager_swipe", true)