aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/prefs/sections/FeedPrefs.kt
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-07-01 20:35:06 -0500
committerIván Ávalos <avalos@disroot.org>2022-07-01 20:35:06 -0500
commit6c6f001fe846efdfea36ba9c19934c4b44d88c15 (patch)
treed1413b30bd20eb01d598665b3e409c363858df64 /app/src/main/kotlin/com/pitchedapps/frost/prefs/sections/FeedPrefs.kt
parent6bff5dce8807408ab0ee30b36714bc35711a5a30 (diff)
downloadfrost-6c6f001fe846efdfea36ba9c19934c4b44d88c15.tar.gz
frost-6c6f001fe846efdfea36ba9c19934c4b44d88c15.tar.bz2
frost-6c6f001fe846efdfea36ba9c19934c4b44d88c15.zip
Fixed ads filter and added new “suggested posts” filter
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/prefs/sections/FeedPrefs.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/prefs/sections/FeedPrefs.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/prefs/sections/FeedPrefs.kt b/app/src/main/kotlin/com/pitchedapps/frost/prefs/sections/FeedPrefs.kt
index 00df9743..f60470f0 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/prefs/sections/FeedPrefs.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/prefs/sections/FeedPrefs.kt
@@ -37,6 +37,8 @@ interface FeedPrefs : PrefsBase {
var showSuggestedGroups: Boolean
+ var showSuggestedPosts: Boolean
+
var showFacebookAds: Boolean
var showStories: Boolean
@@ -82,6 +84,11 @@ class FeedPrefsImpl @Inject internal constructor(
oldPrefs.showSuggestedGroups /* true */
)
+ override var showSuggestedPosts: Boolean by kpref(
+ "suggested_groups_posts",
+ oldPrefs.showSuggestedPosts /* true */
+ )
+
override var showFacebookAds: Boolean by kpref(
"facebook_ads",
oldPrefs.showFacebookAds /* false */