From 7267064d8a007e49bf05c3fc68b6338209a7c784 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Fri, 30 Jun 2017 10:36:38 -0700 Subject: Remove user info in debug logs --- .../com/pitchedapps/frost/settings/Behaviour.kt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt (limited to 'app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt b/app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt new file mode 100644 index 00000000..28554092 --- /dev/null +++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt @@ -0,0 +1,25 @@ +package com.pitchedapps.frost.settings + +import ca.allanwang.kau.kpref.KPrefAdapterBuilder +import com.pitchedapps.frost.R +import com.pitchedapps.frost.SettingsActivity +import com.pitchedapps.frost.utils.Prefs + +/** + * Created by Allan Wang on 2017-06-30. + */ +fun SettingsActivity.getBehaviourPrefs(): KPrefAdapterBuilder.() -> Unit = { + + checkbox(R.string.fancy_animations, { Prefs.animate }, { Prefs.animate = it; animate = it }) { + descRes = R.string.fancy_animations_desc + } + + checkbox(R.string.exit_confirmation, { Prefs.exitConfirmation }, { Prefs.exitConfirmation = it }) { + descRes = R.string.exit_confirmation_desc + } + + checkbox(R.string.analytics, { Prefs.analytics }, { Prefs.analytics = it }) { + descRes = R.string.analytics_desc + } + +} -- cgit v1.2.3