From 76b26e3d7aad8f6f48cdfb3e196be5143c3c0887 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Mon, 4 Jul 2022 22:13:56 -0500 Subject: Added new “marketplace items” filter 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 5b1007d5..851fa6f8 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt @@ -109,6 +109,16 @@ fun SettingsActivity.getFeedPrefs(): KPrefAdapterBuilder.() -> Unit = { descRes = R.string.suggested_posts_desc } + checkbox( + R.string.marketplace_items, prefs::showMarketplaceItems, + { + prefs.showMarketplaceItems = it + shouldRefreshMain() + } + ) { + descRes = R.string.marketplace_items_desc + } + checkbox( R.string.show_stories, prefs::showStories, { -- cgit v1.2.3