1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 09:47:13 +00:00

Small improvements

This commit is contained in:
M66B 2022-08-14 15:11:56 +02:00
parent 1bc688dac3
commit e24dc6bc6b

View file

@ -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<EntityFolder> folders;
EmailProvider.Server inbound = (pop ? provider.pop : provider.imap);