From ad9fdf9f6718918e9daf5c0afb378f0bc4e47283 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 3 Oct 2020 21:22:24 -0700 Subject: Force refresh on settings change and use shared class tag --- app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/kotlin/com/pitchedapps') 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 e38314ea..45a3e5c0 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt @@ -68,7 +68,7 @@ fun SettingsActivity.getBehaviourPrefs(): KPrefAdapterBuilder.() -> Unit = { checkbox( R.string.auto_expand_text_box, prefs::autoExpandTextBox, - { prefs.autoExpandTextBox = it }) { + { prefs.autoExpandTextBox = it; shouldRefreshMain() }) { descRes = R.string.auto_expand_text_box_desc } -- cgit v1.2.3