From 6c6f001fe846efdfea36ba9c19934c4b44d88c15 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Fri, 1 Jul 2022 20:35:06 -0500 Subject: Fixed ads filter and added new “suggested posts” filter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/kotlin/com/pitchedapps/frost/prefs/sections/FeedPrefs.kt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/src/main/kotlin/com/pitchedapps/frost/prefs/sections/FeedPrefs.kt') 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 */ -- cgit v1.2.3