aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-09-27 20:09:52 -0700
committerAllan Wang <me@allanwang.ca>2020-09-27 20:09:52 -0700
commit8a8e7268a5bfbd0bc0d8ec5058365fb1109ad20f (patch)
treef6d4ecd0d961b3afccd0a842e1113423fd8b0347 /app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt
parent983a3dfa7462316df4dc01b583edf0cbe7a9d606 (diff)
downloadfrost-8a8e7268a5bfbd0bc0d8ec5058365fb1109ad20f.tar.gz
frost-8a8e7268a5bfbd0bc0d8ec5058365fb1109ad20f.tar.bz2
frost-8a8e7268a5bfbd0bc0d8ec5058365fb1109ad20f.zip
Add option to hide feed likes and bottom bar
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.kt13
1 files changed, 10 insertions, 3 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 22917106..f8d10437 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt
@@ -91,11 +91,18 @@ fun SettingsActivity.getFeedPrefs(): KPrefAdapterBuilder.() -> Unit = {
descRes = R.string.show_stories_desc
}
- checkbox(R.string.facebook_ads, prefs::showFacebookAds, {
- prefs.showFacebookAds = it
+ checkbox(R.string.show_post_actions, prefs::showPostActions, {
+ prefs.showPostActions = it
shouldRefreshMain()
}) {
- descRes = R.string.facebook_ads_desc
+ descRes = R.string.show_post_actions_desc
+ }
+
+ checkbox(R.string.show_post_reactions, prefs::showPostReactions, {
+ prefs.showPostReactions = it
+ shouldRefreshMain()
+ }) {
+ descRes = R.string.show_post_reactions_desc
}
checkbox(R.string.full_size_image, prefs::fullSizeImage, {