mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
wording, show delete-all-checks in red
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user