diff options
author | Allan Wang <me@allanwang.ca> | 2019-08-08 00:08:22 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-08-08 00:08:22 -0700 |
commit | b71c73565f551b5bcc2712c3cf8fdcd4a9562095 (patch) | |
tree | 175e04dfb75fee85bc3bba7c30c7a0fde29e2308 /app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt | |
parent | 7ed4ba701e3e29366f2bd73da010398929829d3e (diff) | |
download | frost-b71c73565f551b5bcc2712c3cf8fdcd4a9562095.tar.gz frost-b71c73565f551b5bcc2712c3cf8fdcd4a9562095.tar.bz2 frost-b71c73565f551b5bcc2712c3cf8fdcd4a9562095.zip |
Revert user agent changes
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt | 7 |
1 files changed, 7 insertions, 0 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 ba5b839b..1ab53a56 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt @@ -83,6 +83,13 @@ fun SettingsActivity.getBehaviourPrefs(): KPrefAdapterBuilder.() -> Unit = { descRes = R.string.exit_confirmation_desc } + checkbox(R.string.web_only, Prefs::webOnly, { + Prefs.webOnly = it + shouldRestartMain() + }) { + descRes = R.string.web_only_desc + } + checkbox(R.string.analytics, Prefs::analytics, { Prefs.analytics = it }) { descRes = R.string.analytics_desc } |