From 7e44ee002d0da8a3710bfcb2cd7375ce738b0919 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 1 Jan 2025 16:27:25 +0100 Subject: [PATCH] Enabled suggest/received by default --- app/src/main/java/eu/faircode/email/EntityContact.java | 2 +- app/src/main/java/eu/faircode/email/FragmentCompose.java | 6 +++--- .../java/eu/faircode/email/FragmentDialogSelectFolder.java | 2 +- .../main/java/eu/faircode/email/FragmentOptionsSend.java | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/EntityContact.java b/app/src/main/java/eu/faircode/email/EntityContact.java index 27b1e914ae..519b75b9e4 100644 --- a/app/src/main/java/eu/faircode/email/EntityContact.java +++ b/app/src/main/java/eu/faircode/email/EntityContact.java @@ -120,7 +120,7 @@ public class EntityContact implements Serializable { return; boolean suggest_sent = prefs.getBoolean("suggest_sent", true); - boolean suggest_received = prefs.getBoolean("suggest_received", false); + boolean suggest_received = prefs.getBoolean("suggest_received", true); // Shortcut if (!suggest_sent && !suggest_received) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index 847df68974..28d1544c4d 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -452,7 +452,7 @@ public class FragmentCompose extends FragmentBase { final boolean keyboard_no_fullscreen = prefs.getBoolean("keyboard_no_fullscreen", false); final boolean suggest_names = prefs.getBoolean("suggest_names", true); final boolean suggest_sent = prefs.getBoolean("suggest_sent", true); - final boolean suggest_received = prefs.getBoolean("suggest_received", false); + final boolean suggest_received = prefs.getBoolean("suggest_received", true); final boolean suggest_frequently = prefs.getBoolean("suggest_frequently", false); final boolean suggest_account = prefs.getBoolean("suggest_account", false); final boolean cc_bcc = prefs.getBoolean("cc_bcc", false); @@ -1447,7 +1447,7 @@ public class FragmentCompose extends FragmentBase { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); boolean auto_identity = prefs.getBoolean("auto_identity", false); boolean suggest_sent = prefs.getBoolean("suggest_sent", true); - boolean suggest_received = prefs.getBoolean("suggest_received", false); + boolean suggest_received = prefs.getBoolean("suggest_received", true); if (!auto_identity) return null; @@ -5561,7 +5561,7 @@ public class FragmentCompose extends FragmentBase { boolean save_drafts = prefs.getBoolean("save_drafts", perform_expunge); boolean auto_identity = prefs.getBoolean("auto_identity", false); boolean suggest_sent = prefs.getBoolean("suggest_sent", true); - boolean suggest_received = prefs.getBoolean("suggest_received", false); + boolean suggest_received = prefs.getBoolean("suggest_received", true); boolean forward_new = prefs.getBoolean("forward_new", false); boolean markdown = prefs.getBoolean("markdown", false); diff --git a/app/src/main/java/eu/faircode/email/FragmentDialogSelectFolder.java b/app/src/main/java/eu/faircode/email/FragmentDialogSelectFolder.java index 75c7a9b7f9..6aedac2bcf 100644 --- a/app/src/main/java/eu/faircode/email/FragmentDialogSelectFolder.java +++ b/app/src/main/java/eu/faircode/email/FragmentDialogSelectFolder.java @@ -373,7 +373,7 @@ public class FragmentDialogSelectFolder extends FragmentDialogBase { List favorites = new ArrayList<>(); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); - boolean suggest_received = prefs.getBoolean("suggest_received", false); + boolean suggest_received = prefs.getBoolean("suggest_received", true); DB db = DB.getInstance(context); diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsSend.java b/app/src/main/java/eu/faircode/email/FragmentOptionsSend.java index 6e051bb561..101053330e 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsSend.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsSend.java @@ -141,7 +141,7 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc final static List RESET_OPTIONS = Collections.unmodifiableList(Arrays.asList( "keyboard", "keyboard_no_fullscreen", - "suggest_names", "suggest_sent", "suggested_received", "suggest_frequently", "suggest_account", "auto_identity", + "suggest_names", "suggest_sent", "suggest_received", "suggest_frequently", "suggest_account", "auto_identity", "purge_contact_age", "purge_contact_freq", "send_reminders", "send_chips", "send_nav_color", "send_pending", "save_revisions", "auto_save_paragraph", "auto_save_dot", "discard_delete", @@ -991,7 +991,7 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc swKeyboardNoFullscreen.setChecked(prefs.getBoolean("keyboard_no_fullscreen", false)); swSuggestNames.setChecked(prefs.getBoolean("suggest_names", true)); swSuggestSent.setChecked(prefs.getBoolean("suggest_sent", true)); - swSuggestReceived.setChecked(prefs.getBoolean("suggest_received", false)); + swSuggestReceived.setChecked(prefs.getBoolean("suggest_received", true)); swSuggestFrequently.setChecked(prefs.getBoolean("suggest_frequently", false)); swSuggestFrequently.setEnabled(swSuggestSent.isChecked() || swSuggestReceived.isChecked()); swSuggestAccount.setChecked(prefs.getBoolean("suggest_account", false));