diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-07-01 23:45:25 -0500 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-07-01 23:45:25 -0500 |
commit | a5a786ce27e7a002eb1f7cea344f48a367b5ce9c (patch) | |
tree | 8a7cd7d02400042cc7069785f6a4bb6f687d5bfe | |
parent | 6c6f001fe846efdfea36ba9c19934c4b44d88c15 (diff) | |
download | frost-a5a786ce27e7a002eb1f7cea344f48a367b5ce9c.tar.gz frost-a5a786ce27e7a002eb1f7cea344f48a367b5ce9c.tar.bz2 frost-a5a786ce27e7a002eb1f7cea344f48a367b5ce9c.zip |
Added missing “show suggested posts” entry to settings
-rw-r--r-- | .idea/misc.xml | 1 | ||||
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/.idea/misc.xml b/.idea/misc.xml index a71075f6..e596dc97 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -6,6 +6,7 @@ <entry key="../../../../layout/custom_preview.xml" value="0.209375" /> <entry key="app/src/main/res/drawable/frost_f_24.xml" value="0.1" /> <entry key="app/src/main/res/layout/activity_image.xml" value="0.1585144927536232" /> + <entry key="app/src/main/res/menu/menu_main.xml" value="0.35052083333333334" /> </map> </option> </component> 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 914874a2..5b1007d5 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt @@ -100,6 +100,16 @@ fun SettingsActivity.getFeedPrefs(): KPrefAdapterBuilder.() -> Unit = { } checkbox( + R.string.suggested_posts, prefs::showSuggestedPosts, + { + prefs.showSuggestedPosts = it + shouldRefreshMain() + } + ) { + descRes = R.string.suggested_posts_desc + } + + checkbox( R.string.show_stories, prefs::showStories, { prefs.showStories = it |