From c3f1fc6a8b3216442a018bb04843dfa68d738918 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Thu, 13 Jul 2017 17:19:19 -0700 Subject: Separate pref strings, add notifs control, fix searchview (#60) * Separate pref strings and add notif controls * Add overlay toggle and minor cleanups * Fix search view --- app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/src/main/kotlin/com/pitchedapps/frost/utils/Prefs.kt') 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) -- cgit v1.2.3