Disable auto identity by default

pull/208/head
M66B 3 years ago
parent aef4e3afd8
commit 758d9aa47a

@ -631,6 +631,9 @@ public class ApplicationEx extends Application
editor.remove("browse_links")
.putBoolean("open_with_tabs", !browse_links);
}
} else if (version < 1927) {
if (!prefs.contains("auto_identity"))
editor.putBoolean("auto_identity", true);
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !BuildConfig.DEBUG)

@ -1373,7 +1373,7 @@ public class FragmentCompose extends FragmentBase {
String email = args.getString("email");
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
boolean auto_identity = prefs.getBoolean("auto_identity", true);
boolean auto_identity = prefs.getBoolean("auto_identity", false);
boolean suggest_sent = prefs.getBoolean("suggest_sent", true);
boolean suggest_received = prefs.getBoolean("suggest_received", false);
@ -4565,7 +4565,7 @@ public class FragmentCompose extends FragmentBase {
boolean receipt_default = prefs.getBoolean("receipt_default", false);
boolean write_below = prefs.getBoolean("write_below", false);
boolean save_drafts = prefs.getBoolean("save_drafts", true);
boolean auto_identity = prefs.getBoolean("auto_identity", true);
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 forward_new = prefs.getBoolean("forward_new", true);

@ -642,7 +642,7 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
swSuggestReceived.setChecked(prefs.getBoolean("suggest_received", false));
swSuggestFrequently.setChecked(prefs.getBoolean("suggest_frequently", false));
swSuggestFrequently.setEnabled(swSuggestSent.isChecked() || swSuggestReceived.isChecked());
swAutoIdentity.setChecked(prefs.getBoolean("auto_identity", true));
swAutoIdentity.setChecked(prefs.getBoolean("auto_identity", false));
swSendChips.setChecked(prefs.getBoolean("send_chips", true));
swSendReminders.setChecked(prefs.getBoolean("send_reminders", true));
swSendPending.setChecked(prefs.getBoolean("send_pending", true));

@ -200,7 +200,6 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:checked="true"
android:text="@string/title_advanced_auto_identity"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"

Loading…
Cancel
Save