From a5a786ce27e7a002eb1f7cea344f48a367b5ce9c Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Fri, 1 Jul 2022 23:45:25 -0500 Subject: Added missing “show suggested posts” entry to settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt') 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 914874a2..5b1007d5 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt @@ -99,6 +99,16 @@ fun SettingsActivity.getFeedPrefs(): KPrefAdapterBuilder.() -> Unit = { descRes = R.string.suggested_groups_desc } + checkbox( + R.string.suggested_posts, prefs::showSuggestedPosts, + { + prefs.showSuggestedPosts = it + shouldRefreshMain() + } + ) { + descRes = R.string.suggested_posts_desc + } + checkbox( R.string.show_stories, prefs::showStories, { -- cgit v1.2.3