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