diff --git a/app/src/main/java/eu/faircode/email/ActivitySetup.java b/app/src/main/java/eu/faircode/email/ActivitySetup.java index d5495132dd..014f7235dc 100644 --- a/app/src/main/java/eu/faircode/email/ActivitySetup.java +++ b/app/src/main/java/eu/faircode/email/ActivitySetup.java @@ -1330,6 +1330,7 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac TextView tvCaption = dview.findViewById(R.id.tvCaption); etPassword1 = dview.findViewById(R.id.tilPassword1); etPassword2 = dview.findViewById(R.id.tilPassword2); + TextView tvImportGmail = dview.findViewById(R.id.tvImportGmail); Group grpExport = dview.findViewById(R.id.grpExport); Group grpImport = dview.findViewById(R.id.grpImport); @@ -1341,6 +1342,9 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac } etPassword2.setVisibility(export ? View.VISIBLE : View.GONE); + tvImportGmail.setVisibility( + export || Build.VERSION.SDK_INT < Build.VERSION_CODES.O + ? View.GONE : View.VISIBLE); grpExport.setVisibility(export ? View.VISIBLE : View.GONE); grpImport.setVisibility(export ? View.GONE : View.VISIBLE); diff --git a/app/src/main/res/layout/dialog_password.xml b/app/src/main/res/layout/dialog_password.xml index f062b491e0..1361a6ef11 100644 --- a/app/src/main/res/layout/dialog_password.xml +++ b/app/src/main/res/layout/dialog_password.xml @@ -116,6 +116,6 @@ android:id="@+id/grpImport" android:layout_width="0dp" android:layout_height="0dp" - app:constraint_referenced_ids="tvImportHint,tvImportGmail" /> + app:constraint_referenced_ids="tvImportHint" /> \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 315dfb4b90..9d1ca5cdc9 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -241,7 +241,10 @@ The export file will contain all settings and data, but no messages and no images referenced in signatures Imported accounts will be added without overwriting any existing ones - Gmail accounts set up with the quick setup wizard will only be imported if the corresponding account is present on the device + + Since Android 8.0 Oreo, Gmail accounts can no longer be imported, as each account must be selected to grant access to the account. + You can easily reconfigure Gmail accounts with the quick setup wizard. + Password Password contains control or whitespace characters Repeat password