From 392f394aec75f3c655b4f39d7640a8f6164cb109 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 4 Aug 2019 23:41:58 -0700 Subject: Add prefs --- app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt | 4 ++++ app/src/main/res/values/strings_pref_feed.xml | 2 ++ 2 files changed, 6 insertions(+) (limited to 'app/src') 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 @@ Filter out additional old posts from Facebook\'s original most recents feed. Disable this if your feed is empty. Status Composer Show status composer in the feed + Create FAB + Show FAB in feed to create new post Suggested Friends Show "People You May Know" in the feed -- cgit v1.2.3