diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-09-16 03:58:42 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-09-16 03:58:42 +0000 |
commit | 350acdb5009c5fdca5c19727ede88bf123b44f6d (patch) | |
tree | 29a3c863777fb5723e9da71feebe4087344794d4 /app/src/main/res | |
parent | eb5cc7d7d41c1db8548fdcab52ce04d4d1a1439e (diff) | |
download | infinity-for-reddit-350acdb5009c5fdca5c19727ede88bf123b44f6d.tar infinity-for-reddit-350acdb5009c5fdca5c19727ede88bf123b44f6d.tar.gz infinity-for-reddit-350acdb5009c5fdca5c19727ede88bf123b44f6d.tar.bz2 infinity-for-reddit-350acdb5009c5fdca5c19727ede88bf123b44f6d.tar.lz infinity-for-reddit-350acdb5009c5fdca5c19727ede88bf123b44f6d.tar.xz infinity-for-reddit-350acdb5009c5fdca5c19727ede88bf123b44f6d.tar.zst infinity-for-reddit-350acdb5009c5fdca5c19727ede88bf123b44f6d.zip |
Add an option which is long press to hide toolbar in post compact layout. This option has crappy animation for now. Add another option to hide toolbar in post compact layout by default.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/values/strings.xml | 4 | ||||
-rw-r--r-- | app/src/main/res/xml/interface_preference.xml | 10 | ||||
-rw-r--r-- | app/src/main/res/xml/security_preferences.xml | 2 |
3 files changed, 14 insertions, 2 deletions
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 39a228ff..3c46cf9f 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -484,7 +484,9 @@ <string name="settings_enable_swipe_action_title">Enable Swipe Action</string> <string name="settings_pull_to_refresh_title">Pull to Refresh</string> <string name="settings_security_title">Security</string> - <string name="settings_require_authentication_to_go_to_account_section_in_navigation_drawer">Require Authentication to Go to Account Section in Navigation Drawer</string> + <string name="settings_require_authentication_to_go_to_account_section_in_navigation_drawer_title">Require Authentication to Go to Account Section in Navigation Drawer</string> + <string name="settings_long_press_to_hide_toolbar_in_compact_layout_title">Long Press to Hide Toolbar in Compact Layout</string> + <string name="settings_post_compact_layout_toolbar_hidden_by_default_title">Toolbar in Compact Layout Hidden by Default</string> <string name="no_link_available">Cannot get the link</string> diff --git a/app/src/main/res/xml/interface_preference.xml b/app/src/main/res/xml/interface_preference.xml index 0fcd1977..f898291c 100644 --- a/app/src/main/res/xml/interface_preference.xml +++ b/app/src/main/res/xml/interface_preference.xml @@ -62,6 +62,16 @@ app:key="show_thumbnail_on_the_left_in_compact_layout" app:title="@string/settings_show_thumbnail_on_the_left_in_compact_layout" /> + <SwitchPreference + app:defaultValue="false" + app:key="long_press_to_hide_toolbar_in_compact_layout" + app:title="@string/settings_long_press_to_hide_toolbar_in_compact_layout_title" /> + + <SwitchPreference + app:defaultValue="false" + app:key="post_compact_layout_toolbar_hidden_by_default" + app:title="@string/settings_post_compact_layout_toolbar_hidden_by_default_title" /> + <Preference app:title="@string/settings_number_of_columns_in_post_feed_title" app:fragment="ml.docilealligator.infinityforreddit.Settings.NumberOfColumnsInPostFeedPreferenceFragment" /> diff --git a/app/src/main/res/xml/security_preferences.xml b/app/src/main/res/xml/security_preferences.xml index a7174faf..d43c2384 100644 --- a/app/src/main/res/xml/security_preferences.xml +++ b/app/src/main/res/xml/security_preferences.xml @@ -3,6 +3,6 @@ <SwitchPreference app:defaultValue="false" app:key="require_auth_to_account_section" - app:title="@string/settings_require_authentication_to_go_to_account_section_in_navigation_drawer" /> + app:title="@string/settings_require_authentication_to_go_to_account_section_in_navigation_drawer_title" /> </PreferenceScreen>
\ No newline at end of file |