Skip to content

Commit e8202ad

Browse files
authored
Merge pull request #4402 from ajay020/integrate-settings-into-single-section
Integrate the settings for file deletion into a single subsection
2 parents 90d03d1 + aaaf471 commit e8202ad

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,5 +851,6 @@ You only need to do this once, until the next time you select a new location for
851851
<string name="trash_bin_retention_bytes_summary">Maximum data (in MBs) trash bin can store</string>
852852
<string name="trash_bin_cleanup_interval_title">Cleanup interval</string>
853853
<string name="trash_bin_cleanup_interval_summary">Trigger auto-cleanup interval (hours)</string>
854+
<string name="file_deletion">File Deletion</string>
854855
</resources>
855856

app/src/main/res/xml/behavior_prefs.xml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,6 @@
2323
app:key="texteditor_newstack"
2424
app:summary="@string/preference_newstack_summary"
2525
app:title="@string/preference_newstack_title" />
26-
<com.amaze.filemanager.ui.views.preference.CheckBox
27-
android:layout_width="wrap_content"
28-
android:layout_height="wrap_content"
29-
app:defaultValue="true"
30-
app:key="delete_confirmation"
31-
app:summary="@string/preference_delete_confirmation_summary"
32-
app:title="@string/preference_delete_confirmation" />
33-
<com.amaze.filemanager.ui.views.preference.CheckBox
34-
android:layout_width="wrap_content"
35-
android:layout_height="wrap_content"
36-
app:defaultValue="false"
37-
app:key="delete_permanently_without_confirmation"
38-
app:summary="@string/preference_delete_permanently_without_confirmation_summary"
39-
app:title="@string/preference_delete_permanently_without_confirmation" />
4026
<Preference
4127
android:layout_width="wrap_content"
4228
android:layout_height="wrap_content"
@@ -55,7 +41,7 @@
5541
app:key="extractpath"
5642
app:summary="@string/archive_summary"
5743
app:title="@string/archive_extract_folder"></Preference>
58-
<PreferenceCategory android:title="@string/trash_bin">
44+
<PreferenceCategory android:title="@string/file_deletion">
5945
<Preference
6046
android:layout_width="wrap_content"
6147
android:layout_height="wrap_content"
@@ -80,6 +66,17 @@
8066
app:key="cleanup_interval"
8167
app:summary="@string/trash_bin_cleanup_interval_summary"
8268
app:title="@string/trash_bin_cleanup_interval_title"></Preference>
69+
<com.amaze.filemanager.ui.views.preference.CheckBox
70+
app:defaultValue="true"
71+
app:key="delete_confirmation"
72+
app:summary="@string/preference_delete_confirmation_summary"
73+
app:title="@string/preference_delete_confirmation" />
74+
75+
<com.amaze.filemanager.ui.views.preference.CheckBox
76+
app:defaultValue="false"
77+
app:key="delete_permanently_without_confirmation"
78+
app:summary="@string/preference_delete_permanently_without_confirmation_summary"
79+
app:title="@string/preference_delete_permanently_without_confirmation" />
8380
</PreferenceCategory>
8481
<PreferenceCategory android:title="@string/advanced_search">
8582

0 commit comments

Comments
 (0)