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 --- .../main/kotlin/com/pitchedapps/frost/prefs/sections/FeedPrefs.kt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/src/main/kotlin/com/pitchedapps/frost/prefs') 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 0060f9ad..232a5ca3 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 @@ -45,6 +45,10 @@ interface FeedPrefs : PrefsBase { var mainActivityLayoutType: Int val mainActivityLayout: MainActivityLayout + + var showPostActions: Boolean + + var showPostReactions: Boolean } class FeedPrefsImpl( @@ -95,4 +99,8 @@ class FeedPrefsImpl( override val mainActivityLayout: MainActivityLayout get() = MainActivityLayout(mainActivityLayoutType) + + override var showPostActions: Boolean by kpref("show_post_actions", true) + + override var showPostReactions: Boolean by kpref("show_post_reactions", true) } -- cgit v1.2.3