aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-04-13 19:00:40 -0400
committerGitHub <noreply@github.com>2019-04-13 19:00:40 -0400
commitb70bdd67219502dc16d4c9ec387afdbc8f124d33 (patch)
treefafba2e6a2a74a4e1eb1adaae1704a0042a6df85 /app/src/main/kotlin/com/pitchedapps
parentc39b86013320642f8e346a4554e183d5e78c9975 (diff)
downloadfrost-b70bdd67219502dc16d4c9ec387afdbc8f124d33.tar.gz
frost-b70bdd67219502dc16d4c9ec387afdbc8f124d33.tar.bz2
frost-b70bdd67219502dc16d4c9ec387afdbc8f124d33.zip
Video settings (#1390)
* Add autoplay setting option * Update changelog
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt9
1 files changed, 9 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 10fa5c99..b77c0f2d 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Behaviour.kt
@@ -19,8 +19,10 @@ package com.pitchedapps.frost.settings
import ca.allanwang.kau.kpref.activity.KPrefAdapterBuilder
import com.pitchedapps.frost.R
import com.pitchedapps.frost.activities.SettingsActivity
+import com.pitchedapps.frost.facebook.FB_URL_BASE
import com.pitchedapps.frost.utils.Prefs
import com.pitchedapps.frost.utils.REQUEST_REFRESH
+import com.pitchedapps.frost.utils.launchWebOverlay
/**
* Created by Allan Wang on 2017-06-30.
@@ -58,6 +60,13 @@ fun SettingsActivity.getBehaviourPrefs(): KPrefAdapterBuilder.() -> Unit = {
descRes = R.string.enable_pip_desc
}
+ plainText(R.string.autoplay_settings) {
+ descRes = R.string.autoplay_settings_desc
+ onClick = {
+ launchWebOverlay("${FB_URL_BASE}settings/videos/")
+ }
+ }
+
checkbox(R.string.exit_confirmation, Prefs::exitConfirmation, { Prefs.exitConfirmation = it }) {
descRes = R.string.exit_confirmation_desc
}