diff options
author | Allan Wang <me@allanwang.ca> | 2017-10-07 15:15:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-07 15:15:10 -0400 |
commit | 1369aa283a2167cf2a9525bd856edd48c39eea21 (patch) | |
tree | 95230383143d2c9997b245058776425f62202e0f /app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt | |
parent | 6bca83c464337c37ebcbabe47f8a8e2e44dd4794 (diff) | |
download | frost-1369aa283a2167cf2a9525bd856edd48c39eea21.tar.gz frost-1369aa283a2167cf2a9525bd856edd48c39eea21.tar.bz2 frost-1369aa283a2167cf2a9525bd856edd48c39eea21.zip |
Add more css hiders (#373)
* Add more css hiders
* Add toggles and injectors
* Fix composer hider
* Update changelog
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 | 15 |
1 files changed, 15 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 3676d39c..3c7b385d 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt @@ -46,6 +46,13 @@ fun SettingsActivity.getFeedPrefs(): KPrefAdapterBuilder.() -> Unit = { onClick = { _, _, _ -> launchWebOverlay("https://touch.facebook.com/settings/videos"); true } } + checkbox(R.string.composer, { Prefs.showComposer }, { + Prefs.showComposer = it + setFrostResult(MainActivity.REQUEST_REFRESH) + }) { + descRes = R.string.composer_desc + } + header(R.string.pro_features) checkbox(R.string.suggested_friends, { Prefs.showSuggestedFriends }, { @@ -56,6 +63,14 @@ fun SettingsActivity.getFeedPrefs(): KPrefAdapterBuilder.() -> Unit = { dependsOnPro() } + checkbox(R.string.suggested_groups, { Prefs.showSuggestedGroups }, { + Prefs.showSuggestedGroups = it + setFrostResult(MainActivity.REQUEST_REFRESH) + }) { + descRes = R.string.suggested_groups_desc + dependsOnPro() + } + checkbox(R.string.facebook_ads, { Prefs.showFacebookAds }, { Prefs.showFacebookAds = it setFrostResult(MainActivity.REQUEST_REFRESH) |