mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Small improvements
This commit is contained in:
parent
1bc688dac3
commit
e24dc6bc6b
1 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue