aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/settings
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-07-21 01:07:06 -0700
committerAllan Wang <me@allanwang.ca>2019-07-21 01:07:06 -0700
commit0055ab5fdab9c86bed7982afde1739e95b093336 (patch)
tree845468f364ba67b3b7b19af0ce7b2c7013990b3e /app/src/main/kotlin/com/pitchedapps/frost/settings
parentdc5979df63c71c6271d733c31a75e5f3f8faa64f (diff)
downloadfrost-0055ab5fdab9c86bed7982afde1739e95b093336.tar.gz
frost-0055ab5fdab9c86bed7982afde1739e95b093336.tar.bz2
frost-0055ab5fdab9c86bed7982afde1739e95b093336.zip
Add prefs
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/settings')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt19
1 files changed, 16 insertions, 3 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 b77c0f2d..c774892e 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt
@@ -29,6 +29,10 @@ import com.pitchedapps.frost.utils.launchWebOverlay
*/
fun SettingsActivity.getBehaviourPrefs(): KPrefAdapterBuilder.() -> Unit = {
+ checkbox(R.string.auto_refresh_feed, Prefs::autoRefreshFeed, { Prefs.autoRefreshFeed = it }) {
+ descRes = R.string.auto_refresh_feed_desc
+ }
+
checkbox(R.string.fancy_animations, Prefs::animate, { Prefs.animate = it; animate = it }) {
descRes = R.string.fancy_animations_desc
}
@@ -40,11 +44,17 @@ fun SettingsActivity.getBehaviourPrefs(): KPrefAdapterBuilder.() -> Unit = {
descRes = R.string.overlay_swipe_desc
}
- checkbox(R.string.overlay_full_screen_swipe, Prefs::overlayFullScreenSwipe, { Prefs.overlayFullScreenSwipe = it }) {
+ checkbox(
+ R.string.overlay_full_screen_swipe,
+ Prefs::overlayFullScreenSwipe,
+ { Prefs.overlayFullScreenSwipe = it }) {
descRes = R.string.overlay_full_screen_swipe_desc
}
- checkbox(R.string.open_links_in_default, Prefs::linksInDefaultApp, { Prefs.linksInDefaultApp = it }) {
+ checkbox(
+ R.string.open_links_in_default,
+ Prefs::linksInDefaultApp,
+ { Prefs.linksInDefaultApp = it }) {
descRes = R.string.open_links_in_default_desc
}
@@ -52,7 +62,10 @@ fun SettingsActivity.getBehaviourPrefs(): KPrefAdapterBuilder.() -> Unit = {
descRes = R.string.viewpager_swipe_desc
}
- checkbox(R.string.force_message_bottom, Prefs::messageScrollToBottom, { Prefs.messageScrollToBottom = it }) {
+ checkbox(
+ R.string.force_message_bottom,
+ Prefs::messageScrollToBottom,
+ { Prefs.messageScrollToBottom = it }) {
descRes = R.string.force_message_bottom_desc
}