From 25e39d9e12eb4f04a809e91ae8f63ab59485b5a4 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 14 Aug 2022 16:35:47 +0200 Subject: [PATCH] Added hint --- .../main/java/eu/faircode/email/FragmentOAuth.java | 4 ++++ app/src/main/res/layout/fragment_oauth.xml | 13 ++++++++++++- app/src/main/res/values/strings.xml | 1 + 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentOAuth.java b/app/src/main/java/eu/faircode/email/FragmentOAuth.java index 7c2d3f64d8..2af4dfd6a4 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 ContentLoadingProgressBar pbOAuth; private TextView tvConfiguring; private TextView tvGmailHint; + private TextView tvGmailLoginHint; private TextView tvError; private TextView tvOfficeAuthHint; @@ -177,6 +178,7 @@ public class FragmentOAuth extends FragmentBase { pbOAuth = view.findViewById(R.id.pbOAuth); tvConfiguring = view.findViewById(R.id.tvConfiguring); tvGmailHint = view.findViewById(R.id.tvGmailHint); + tvGmailLoginHint = view.findViewById(R.id.tvGmailLoginHint); tvError = view.findViewById(R.id.tvError); tvOfficeAuthHint = view.findViewById(R.id.tvOfficeAuthHint); @@ -267,6 +269,7 @@ public class FragmentOAuth extends FragmentBase { pbOAuth.setVisibility(View.GONE); tvConfiguring.setVisibility(View.GONE); tvGmailHint.setVisibility("gmail".equals(id) ? View.VISIBLE : View.GONE); + tvGmailLoginHint.setVisibility("gmail".equals(id) ? View.VISIBLE : View.GONE); hideError(); etName.setText(personal); @@ -429,6 +432,7 @@ public class FragmentOAuth extends FragmentBase { redirectUri = Uri.parse("eu.faircode.email.debug:/"); } + // https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest AuthorizationRequest.Builder authRequestBuilder = new AuthorizationRequest.Builder( serviceConfig, diff --git a/app/src/main/res/layout/fragment_oauth.xml b/app/src/main/res/layout/fragment_oauth.xml index f37f0fa2ec..7fe398b56e 100644 --- a/app/src/main/res/layout/fragment_oauth.xml +++ b/app/src/main/res/layout/fragment_oauth.xml @@ -175,6 +175,17 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/tvConfiguring" /> + + + app:layout_constraintTop_toBottomOf="@id/tvGmailLoginHint" /> Authorizing Google accounts will work in the Play Store and GitHub version only because Android checks the digital app signature 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. 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