diff options
author | Allan Wang <me@allanwang.ca> | 2017-09-16 01:34:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-16 01:34:45 -0400 |
commit | 43946902504c1aa5c1217e3fe802697566db4c03 (patch) | |
tree | a10c09b74f42ef69b1c5a72f947040dd0b3d03a2 /app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt | |
parent | 33ca5b2762e0dca515a54a715845ce816215de7a (diff) | |
download | frost-43946902504c1aa5c1217e3fe802697566db4c03.tar.gz frost-43946902504c1aa5c1217e3fe802697566db4c03.tar.bz2 frost-43946902504c1aa5c1217e3fe802697566db4c03.zip |
Feature/recents (#290)
* Create toggle for aggressive recents
* Add toggle
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt b/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt index cfc2bb6f..3676d39c 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt @@ -34,6 +34,13 @@ fun SettingsActivity.getFeedPrefs(): KPrefAdapterBuilder.() -> Unit = { textGetter = { string(FeedSort(it).textRes) } } + checkbox(R.string.aggressive_recents, { Prefs.aggressiveRecents }, { + Prefs.aggressiveRecents = it + setFrostResult(MainActivity.REQUEST_REFRESH) + }) { + descRes = R.string.aggressive_recents_desc + } + plainText(R.string.autoplay_settings) { descRes = R.string.autoplay_settings_desc onClick = { _, _, _ -> launchWebOverlay("https://touch.facebook.com/settings/videos"); true } |