diff options
author | Allan Wang <me@allanwang.ca> | 2020-05-23 18:45:03 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2020-05-23 18:45:03 -0700 |
commit | 3d4d9e636f06bb72c0468927a91e9a81e203424f (patch) | |
tree | 8833ac0ad7ede4abc447187efb35e55f0e9356a6 | |
parent | c7cfb2c8682b223e5949735a015cb920934b36cd (diff) | |
download | frost-3d4d9e636f06bb72c0468927a91e9a81e203424f.tar.gz frost-3d4d9e636f06bb72c0468927a91e9a81e203424f.tar.bz2 frost-3d4d9e636f06bb72c0468927a91e9a81e203424f.zip |
Add pref entry
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt | 7 | ||||
-rw-r--r-- | app/src/main/res/values-gr-rGR/strings_pref_feed.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/values/strings_pref_feed.xml | 6 |
3 files changed, 12 insertions, 3 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 15a0633b..22917106 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/settings/Feed.kt @@ -97,4 +97,11 @@ fun SettingsActivity.getFeedPrefs(): KPrefAdapterBuilder.() -> Unit = { }) { descRes = R.string.facebook_ads_desc } + + checkbox(R.string.full_size_image, prefs::fullSizeImage, { + prefs.fullSizeImage = it + shouldRefreshMain() + }) { + descRes = R.string.full_size_image_desc + } } diff --git a/app/src/main/res/values-gr-rGR/strings_pref_feed.xml b/app/src/main/res/values-gr-rGR/strings_pref_feed.xml index 218ccd7e..ea707524 100644 --- a/app/src/main/res/values-gr-rGR/strings_pref_feed.xml +++ b/app/src/main/res/values-gr-rGR/strings_pref_feed.xml @@ -9,7 +9,7 @@ <string name="composer_desc">Εμφάνιση Δημιουργίας Δημοσίευσης στο feed δημοσιεύσεων</string> <string name="suggested_friends">Προτεινόμενοι Φίλοι</string> - <string name="suggested_friends_desc">Εμφάνισε "Ανθρώπους που ίσως γνωρίζετε" στο feed δημοσιεύσεων</string> + <string name="suggested_friends_desc">Εμφάνισε \"Ανθρώπους που ίσως γνωρίζετε\" στο feed δημοσιεύσεων</string> <string name="suggested_groups">Προτεινόμενες ομάδες</string> <string name="suggested_groups_desc">Εμφάνισε "Προτεινόμενες ομάδες" στο feed</string> <string name="show_stories">Εμφάνιση Ιστοριών</string> diff --git a/app/src/main/res/values/strings_pref_feed.xml b/app/src/main/res/values/strings_pref_feed.xml index 96112059..330c900c 100644 --- a/app/src/main/res/values/strings_pref_feed.xml +++ b/app/src/main/res/values/strings_pref_feed.xml @@ -11,12 +11,14 @@ <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> + <string name="suggested_friends_desc">Show \"People You May Know\" in the feed</string> <string name="suggested_groups">Suggested Groups</string> - <string name="suggested_groups_desc">Show "Suggested Groups" in the feed</string> + <string name="suggested_groups_desc">Show \"Suggested Groups\" in the feed</string> <string name="show_stories">Show Stories</string> <string name="show_stories_desc">Show stories in the feed</string> <string name="facebook_ads">Facebook Ads</string> <string name="facebook_ads_desc">Show native Facebook ads</string> + <string name="full_size_image">Full Size Images</string> + <string name="full_size_image_desc">Force news feed images to be full width</string> </resources>
\ No newline at end of file |