From 8a8e7268a5bfbd0bc0d8ec5058365fb1109ad20f Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 27 Sep 2020 20:09:52 -0700 Subject: Add option to hide feed likes and bottom bar --- app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (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 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, { -- cgit v1.2.3