mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-10-05 21:39:50 +02:00
Add an option to require authentication before going to account section in navigation drawer.
This commit is contained in:
9
app/src/main/res/drawable-night/ic_security_24dp.xml
Normal file
9
app/src/main/res/drawable-night/ic_security_24dp.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M12,1L3,5v6c0,5.55 3.84,10.74 9,12 5.16,-1.26 9,-6.45 9,-12L21,5l-9,-4zM12,11.99h7c-0.53,4.12 -3.28,7.79 -7,8.94L12,12L5,12L5,6.3l7,-3.11v8.8z"
|
||||
android:fillColor="#FFFFFF"/>
|
||||
</vector>
|
9
app/src/main/res/drawable/ic_security_24dp.xml
Normal file
9
app/src/main/res/drawable/ic_security_24dp.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M12,1L3,5v6c0,5.55 3.84,10.74 9,12 5.16,-1.26 9,-6.45 9,-12L21,5l-9,-4zM12,11.99h7c-0.53,4.12 -3.28,7.79 -7,8.94L12,12L5,12L5,6.3l7,-3.11v8.8z"
|
||||
android:fillColor="#000000"/>
|
||||
</vector>
|
@@ -233,14 +233,4 @@
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
</string-array>
|
||||
<!-- Reply Preference -->
|
||||
<string-array name="reply_entries">
|
||||
<item>Reply</item>
|
||||
<item>Reply to all</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="reply_values">
|
||||
<item>reply</item>
|
||||
<item>reply_all</item>
|
||||
</string-array>
|
||||
</resources>
|
@@ -483,6 +483,8 @@
|
||||
<string name="settings_disable_swiping_between_tabs_title">Disable Swiping Between Tabs</string>
|
||||
<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="no_link_available">Cannot get the link</string>
|
||||
|
||||
@@ -882,7 +884,21 @@
|
||||
<string name="block_user_failed">Failed to block user</string>
|
||||
|
||||
<string name="view_full_comment_markdown">View Full Markdown</string>
|
||||
<!-- TODO: Remove or change this placeholder text -->
|
||||
<string name="hello_blank_fragment">Hello blank fragment</string>
|
||||
|
||||
<string name="unlock_account_section">Unlock Account Section</string>
|
||||
<!-- Preference Titles -->
|
||||
<string name="messages_header">Messages</string>
|
||||
<string name="sync_header">Sync</string>
|
||||
|
||||
<!-- Messages Preferences -->
|
||||
<string name="signature_title">Your signature</string>
|
||||
<string name="reply_title">Default reply action</string>
|
||||
|
||||
<!-- Sync Preferences -->
|
||||
<string name="sync_title">Sync email periodically</string>
|
||||
<string name="attachment_title">Download incoming attachments</string>
|
||||
<string name="attachment_summary_on">Automatically download attachments for incoming emails
|
||||
</string>
|
||||
<string name="attachment_summary_off">Only download attachments when manually requested</string>
|
||||
|
||||
</resources>
|
||||
|
@@ -41,6 +41,11 @@
|
||||
android:icon="@drawable/ic_download_24dp"
|
||||
app:fragment="ml.docilealligator.infinityforreddit.Settings.DownloadLocationPreferenceFragment" />
|
||||
|
||||
<Preference
|
||||
app:title="@string/settings_security_title"
|
||||
android:icon="@drawable/ic_security_24dp"
|
||||
app:fragment="ml.docilealligator.infinityforreddit.Settings.SecurityPreferenceFragment" />
|
||||
|
||||
<SwitchPreference
|
||||
app:defaultValue="false"
|
||||
app:key="save_front_page_scrolled_position"
|
||||
|
8
app/src/main/res/xml/security_preferences.xml
Normal file
8
app/src/main/res/xml/security_preferences.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<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" />
|
||||
|
||||
</PreferenceScreen>
|
Reference in New Issue
Block a user