diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-21 00:17:11 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-21 00:17:11 -0700 |
commit | 50a7b483b9169ed435839ffc6c4b1953e2d034e5 (patch) | |
tree | 4219f4c55afe4dfb58c20b0c4f049536616328da /app/src/main/kotlin/com/pitchedapps/frost/SettingsActivity.kt | |
parent | 1b74d78f836ca30ef78a779da75f6acb592277a4 (diff) | |
download | frost-50a7b483b9169ed435839ffc6c4b1953e2d034e5.tar.gz frost-50a7b483b9169ed435839ffc6c4b1953e2d034e5.tar.bz2 frost-50a7b483b9169ed435839ffc6c4b1953e2d034e5.zip |
Clean up and add event logging
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/SettingsActivity.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/SettingsActivity.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/SettingsActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/SettingsActivity.kt index 1fcdf798..ef8345d0 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/SettingsActivity.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/SettingsActivity.kt @@ -24,12 +24,13 @@ class SettingsActivity : KPrefActivity() { items(Theme.values().map { this@SettingsActivity.string(it.textRes) }) itemsDisabledIndices(Theme.CUSTOM.ordinal) itemsCallbackSingleChoice(item.pref, { - _, _, which, _ -> + _, _, which, text -> if (item.pref != which) { item.pref = which reload() setFrostTheme(true) themeExterior() + frostAnswersCustom("Theme") { putCustomAttribute("Count", text.toString()) } } true }) |