diff options
author | Allan Wang <me@allanwang.ca> | 2020-09-27 20:09:52 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2020-09-27 20:09:52 -0700 |
commit | 8a8e7268a5bfbd0bc0d8ec5058365fb1109ad20f (patch) | |
tree | f6d4ecd0d961b3afccd0a842e1113423fd8b0347 /app/src/main/kotlin/com/pitchedapps/frost/prefs/sections/FeedPrefs.kt | |
parent | 983a3dfa7462316df4dc01b583edf0cbe7a9d606 (diff) | |
download | frost-8a8e7268a5bfbd0bc0d8ec5058365fb1109ad20f.tar.gz frost-8a8e7268a5bfbd0bc0d8ec5058365fb1109ad20f.tar.bz2 frost-8a8e7268a5bfbd0bc0d8ec5058365fb1109ad20f.zip |
Add option to hide feed likes and bottom bar
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/prefs/sections/FeedPrefs.kt')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/prefs/sections/FeedPrefs.kt | 8 |
1 files changed, 8 insertions, 0 deletions
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) } |