1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 15:11:03 +00:00

Skip token refresh account/identity setup

This commit is contained in:
M66B 2018-09-05 19:00:21 +00:00
parent a5d77946ce
commit c0d4b7001a
2 changed files with 0 additions and 13 deletions

View file

@ -287,12 +287,6 @@ public class FragmentAccount extends FragmentEx {
if (TextUtils.isEmpty(password))
throw new Throwable(getContext().getString(R.string.title_no_password));
// Refresh token
if (id >= 0 && auth_type == Helper.AUTH_TYPE_GMAIL) {
password = Helper.refreshToken(getContext(), "com.google", user, password);
args.putString("password", password);
}
// Check IMAP server / get folders
List<EntityFolder> folders = new ArrayList<>();
Properties props = MessageHelper.getSessionProperties(context, auth_type);
@ -371,9 +365,6 @@ public class FragmentAccount extends FragmentEx {
btnCheck.setEnabled(true);
pbCheck.setVisibility(View.GONE);
// Refreshed token
tilPassword.getEditText().setText(args.getString("password"));
final Collator collator = Collator.getInstance(Locale.getDefault());
collator.setStrength(Collator.SECONDARY); // Case insensitive, process accents etc

View file

@ -267,10 +267,6 @@ public class FragmentIdentity extends FragmentEx {
if (TextUtils.isEmpty(replyto))
replyto = null;
// Refresh token
if (id >= 0 && auth_type == Helper.AUTH_TYPE_GMAIL)
password = Helper.refreshToken(getContext(), "com.google", user, password);
// Check SMTP server
if (synchronize) {
Properties props = MessageHelper.getSessionProperties(context, auth_type);