diff --git a/app/src/main/java/eu/faircode/email/FragmentOAuth.java b/app/src/main/java/eu/faircode/email/FragmentOAuth.java index 81a2141c4c..eb54e54ec2 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOAuth.java +++ b/app/src/main/java/eu/faircode/email/FragmentOAuth.java @@ -125,6 +125,7 @@ public class FragmentOAuth extends FragmentBase { private TextView tvConfiguring; private TextView tvGmailHint; private TextView tvGmailLoginHint; + private TextView tvGmailLoginMax; private TextView tvError; private TextView tvOfficeAuthHint; @@ -180,6 +181,7 @@ public class FragmentOAuth extends FragmentBase { tvConfiguring = view.findViewById(R.id.tvConfiguring); tvGmailHint = view.findViewById(R.id.tvGmailHint); tvGmailLoginHint = view.findViewById(R.id.tvGmailLoginHint); + tvGmailLoginMax = view.findViewById(R.id.tvGmailLoginMax); tvError = view.findViewById(R.id.tvError); tvOfficeAuthHint = view.findViewById(R.id.tvOfficeAuthHint); @@ -271,6 +273,7 @@ public class FragmentOAuth extends FragmentBase { tvConfiguring.setVisibility(View.GONE); tvGmailHint.setVisibility("gmail".equals(id) ? View.VISIBLE : View.GONE); tvGmailLoginHint.setVisibility("gmail".equals(id) ? View.VISIBLE : View.GONE); + tvGmailLoginMax.setVisibility("gmail".equals(id) ? View.VISIBLE : View.GONE); hideError(); etName.setText(personal); diff --git a/app/src/main/res/layout/fragment_oauth.xml b/app/src/main/res/layout/fragment_oauth.xml index 0e167203d8..35bf77cde8 100644 --- a/app/src/main/res/layout/fragment_oauth.xml +++ b/app/src/main/res/layout/fragment_oauth.xml @@ -185,6 +185,17 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/tvGmailHint" /> + + + app:layout_constraintTop_toBottomOf="@id/tvGmailLoginMax" /> Please grant permissions to select an account and read your name Google will ask for permissions to read, compose, send and permanently delete all your email. FairEmail will never delete your messages without your explicit consent. If Chrome is signed in to an account, a new account can only be added through Android. This can be avoided by logging out of Chrome via the Chrome sync settings. + In case of the error message \"You\'re signed in to the maximum number of accounts\", you need to log out the browser from all Google accounts. Why do I need to select an on-device account? I want to authorize an account with a password instead of an on-device account The error \'AUTHENTICATE failed\' can be caused by IMAP/SMTP being disabled by the system administrator