From 7bcb15220da23a40587639b0081f66dec2375b32 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 31 Mar 2022 17:33:53 +0200 Subject: [PATCH] Update accounts by default --- app/src/main/java/eu/faircode/email/FragmentGmail.java | 2 +- app/src/main/java/eu/faircode/email/FragmentOAuth.java | 2 +- app/src/main/java/eu/faircode/email/FragmentQuickSetup.java | 2 +- app/src/main/res/values/strings.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentGmail.java b/app/src/main/java/eu/faircode/email/FragmentGmail.java index 9082b75adf..de5d5cbdad 100644 --- a/app/src/main/java/eu/faircode/email/FragmentGmail.java +++ b/app/src/main/java/eu/faircode/email/FragmentGmail.java @@ -98,7 +98,7 @@ public class FragmentGmail extends FragmentBase { Bundle args = getArguments(); personal = args.getString("personal"); address = args.getString("address"); - update = args.getBoolean("update"); + update = args.getBoolean("update", true); } @Override diff --git a/app/src/main/java/eu/faircode/email/FragmentOAuth.java b/app/src/main/java/eu/faircode/email/FragmentOAuth.java index 72be91cb2e..b7051d8ab7 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOAuth.java +++ b/app/src/main/java/eu/faircode/email/FragmentOAuth.java @@ -141,7 +141,7 @@ public class FragmentOAuth extends FragmentBase { personal = args.getString("personal"); address = args.getString("address"); - update = args.getBoolean("update"); + update = args.getBoolean("update", true); } @Override diff --git a/app/src/main/java/eu/faircode/email/FragmentQuickSetup.java b/app/src/main/java/eu/faircode/email/FragmentQuickSetup.java index aab1b6219f..bfe22c77de 100644 --- a/app/src/main/java/eu/faircode/email/FragmentQuickSetup.java +++ b/app/src/main/java/eu/faircode/email/FragmentQuickSetup.java @@ -118,7 +118,7 @@ public class FragmentQuickSetup extends FragmentBase { super.onCreate(savedInstanceState); Bundle args = getArguments(); - update = args.getBoolean("update"); + update = args.getBoolean("update", true); } @Override diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 6e9166a4d9..95c834d70f 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -202,7 +202,7 @@ I want to authorize an account with a password The error \'AUTHENTICATE failed\' can be caused by IMAP/SMTP being disabled by the system administrator Authorize access to your %1$s account - Authorize existing account again + Authorize an existing account again (otherwise create a new account) Account authorization was updated Authorize Select account