aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-08-07 23:08:40 -0700
committerAllan Wang <me@allanwang.ca>2019-08-07 23:08:40 -0700
commit7ed4ba701e3e29366f2bd73da010398929829d3e (patch)
tree6752e23d6d632ae2f57838b4040d6f80c63db7cd /app/src/main/kotlin
parent6ab5ee6c839993b5340304dc86d4f43820b734fe (diff)
downloadfrost-7ed4ba701e3e29366f2bd73da010398929829d3e.tar.gz
frost-7ed4ba701e3e29366f2bd73da010398929829d3e.tar.bz2
frost-7ed4ba701e3e29366f2bd73da010398929829d3e.zip
Restart main after applying
Diffstat (limited to 'app/src/main/kotlin')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/settings/Experimental.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/settings/Experimental.kt b/app/src/main/kotlin/com/pitchedapps/frost/settings/Experimental.kt
index 3c43bc47..0762d87a 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/settings/Experimental.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Experimental.kt
@@ -59,7 +59,10 @@ fun SettingsActivity.getExperimentalPrefs(): KPrefAdapterBuilder.() -> Unit = {
descRes = R.string.web_only_desc
}
- checkbox(R.string.single_user_agent, Prefs::singleUserAgent, { Prefs.singleUserAgent }) {
+ checkbox(R.string.single_user_agent, Prefs::singleUserAgent, {
+ Prefs.singleUserAgent
+ shouldRestartMain()
+ }) {
descRes = R.string.single_user_agent_desc
}