wording, show delete-all-checks in red

This commit is contained in:
B. Petersen
2019-06-25 16:13:49 +02:00
parent c0d2f75c6d
commit dddd02882f
3 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -13,7 +13,8 @@
<CheckBox
android:id="@+id/empty_inbox_folder"
android:text="Delete ALL messages in Inbox folder"
android:text="Delete ALL e-mails in Inbox folder"
android:textColor="@color/red_500"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
@@ -21,7 +22,8 @@
<CheckBox
android:id="@+id/empty_deltachat_folder"
android:text="Delete ALL messages in DeltaChat folder"
android:text="Delete ALL e-mails in DeltaChat folder"
android:textColor="@color/red_500"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
+1 -1
View File
@@ -45,7 +45,7 @@
<PreferenceCategory android:title="Experimental features">
<Preference android:key="pref_empty_server_folders"
android:title="Empty server folders" />
android:title="Delete e-mails from server" />
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
android:defaultValue="false"
@@ -290,11 +290,11 @@ public class AdvancedPreferenceFragment extends ListSummaryPreferenceFragment
CheckBox inboxCb = gl.findViewById(R.id.empty_inbox_folder);
CheckBox mvboxCb = gl.findViewById(R.id.empty_deltachat_folder);
new AlertDialog.Builder(getActivity())
.setTitle("Empty server folders")
.setMessage("This function helps to free space on your IMAP server by deleting ALL e-mails and chat-messages in the given folders. Messages on this device will not be deleted.\n\nThe deletion cannot be undone!")
.setTitle("DANGER ZONE: Delete e-mails from server")
.setMessage("This function helps to free space on your IMAP server by deleting ALL e-mails, including chat-messages, in the given folders. Messages on this device will not be deleted.\n\nThe deletion cannot be undone!")
.setView(gl)
.setNegativeButton(R.string.cancel, null)
.setPositiveButton("Delete messages", (dialog, which) -> {
.setPositiveButton("Delete e-mails", (dialog, which) -> {
int flags = 0;
if (inboxCb!=null && inboxCb.isChecked()) {
flags |= DcContext.DC_EMPTY_INBOX;