ExternalStorageProvider: Conditionally remove SAF restrictions [2/2]

* Write title and summary based on  NoStorageRestrict module's descriptions.

Ref:
https://github.com/DanGLES3/NoStorageRestrict

Change-Id: Ie62441f2c8e7ebaca3612100c79e7c24ebfb5b0e
Signed-off-by: someone5678 <someone5678@users.noreply.github.com>
This commit is contained in:
someone5678
2024-06-01 13:49:36 +09:00
committed by Joey
parent 84b745ed00
commit c45ca9ea52
3 changed files with 18 additions and 0 deletions

View File

@@ -193,4 +193,8 @@
<!-- Hide screen capture status -->
<string name="hide_screen_capture_status_title">Hide screen capture status</string>
<string name="hide_screen_capture_status_summary">Hide screen capture and screen record status from all applications. Can be convenient in some cases but may lead to privacy leaks. Need to restart applications for the change to take effect.</string>
<!-- No storage restrict -->
<string name="no_storage_restrict_title">No storage restrict</string>
<string name="no_storage_restrict_summary">Remove the restriction when selecting folders through Storage Access Framework. Can be convenient in some cases but may lead to privacy leaks.</string>
</resources>

View File

@@ -245,4 +245,11 @@
android:summary="@string/hide_screen_capture_status_summary"
android:defaultValue="false"/>
<org.evolution.settings.preferences.GlobalSettingSwitchPreference
android:order="96"
android:key="no_storage_restrict"
android:title="@string/no_storage_restrict_title"
android:summary="@string/no_storage_restrict_summary"
android:defaultValue="false"/>
</PreferenceScreen>

View File

@@ -131,6 +131,13 @@
android:summary="@string/hide_screen_capture_status_summary"
android:defaultValue="false"/>
<org.evolution.settings.preferences.GlobalSettingSwitchPreference
android:order="96"
android:key="no_storage_restrict"
android:title="@string/no_storage_restrict_title"
android:summary="@string/no_storage_restrict_summary"
android:defaultValue="false"/>
<!-- work profile security section -->
<PreferenceCategory
android:order="310"