aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-08-04 23:41:58 -0700
committerAllan Wang <me@allanwang.ca>2019-08-04 23:41:58 -0700
commit392f394aec75f3c655b4f39d7640a8f6164cb109 (patch)
treed071efa9b529c6d3b0a4fadd301e94368125451f
parent74e05199872e9b09678822378856e225a79028b4 (diff)
downloadfrost-392f394aec75f3c655b4f39d7640a8f6164cb109.tar.gz
frost-392f394aec75f3c655b4f39d7640a8f6164cb109.tar.bz2
frost-392f394aec75f3c655b4f39d7640a8f6164cb109.zip
Add prefs
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt4
-rw-r--r--app/src/main/res/values/strings_pref_feed.xml2
2 files changed, 6 insertions, 0 deletions
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 c764244b..cf7b3d09 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt
@@ -64,6 +64,10 @@ fun SettingsActivity.getFeedPrefs(): KPrefAdapterBuilder.() -> Unit = {
descRes = R.string.composer_desc
}
+ checkbox(R.string.create_fab, Prefs::showCreateFab, { Prefs.showCreateFab = it }) {
+ descRes = R.string.create_fab_desc
+ }
+
checkbox(R.string.suggested_friends, Prefs::showSuggestedFriends, {
Prefs.showSuggestedFriends = it
setFrostResult(REQUEST_REFRESH)
diff --git a/app/src/main/res/values/strings_pref_feed.xml b/app/src/main/res/values/strings_pref_feed.xml
index d7a15bda..96112059 100644
--- a/app/src/main/res/values/strings_pref_feed.xml
+++ b/app/src/main/res/values/strings_pref_feed.xml
@@ -7,6 +7,8 @@
<string name="aggressive_recents_desc">Filter out additional old posts from Facebook\'s original most recents feed. Disable this if your feed is empty.</string>
<string name="composer">Status Composer</string>
<string name="composer_desc">Show status composer in the feed</string>
+ <string name="create_fab">Create FAB</string>
+ <string name="create_fab_desc">Show FAB in feed to create new post</string>
<string name="suggested_friends">Suggested Friends</string>
<string name="suggested_friends_desc">Show "People You May Know" in the feed</string>