From e24dc6bc6b9d1f56b61f507331ce4d8399458965 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 14 Aug 2022 15:11:56 +0200 Subject: [PATCH] Small improvements --- app/src/main/java/eu/faircode/email/FragmentGmail.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentGmail.java b/app/src/main/java/eu/faircode/email/FragmentGmail.java index a43348b4ea..54413ecb1b 100644 --- a/app/src/main/java/eu/faircode/email/FragmentGmail.java +++ b/app/src/main/java/eu/faircode/email/FragmentGmail.java @@ -228,8 +228,8 @@ public class FragmentGmail extends FragmentBase { Helper.setViewsEnabled(view, false); tvTitle.setText(getString(R.string.title_setup_oauth_rationale, "Gmail")); etName.setText(personal); - cbPop.setChecked(pop); - cbRecent.setChecked(recent); + cbPop.setChecked(false); + cbRecent.setChecked(false); cbRecent.setVisibility(pop ? View.VISIBLE : View.GONE); cbUpdate.setChecked(update); pbSelect.setVisibility(View.GONE); @@ -453,15 +453,15 @@ public class FragmentGmail extends FragmentBase { int at = user.indexOf('@'); String username = user.substring(0, at); - if (pop && recent) - user = "recent:" + user; - EmailProvider provider = EmailProvider .fromDomain(context, "gmail.com", EmailProvider.Discover.ALL) .get(0); if (provider.pop == null) pop = false; + if (pop && recent) + user = "recent:" + user; + List folders; EmailProvider.Server inbound = (pop ? provider.pop : provider.imap);