mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 14:11:00 +00:00
Fixed auth token error from disappearing
This commit is contained in:
parent
865c444098
commit
ba6e632c60
1 changed files with 7 additions and 2 deletions
|
@ -1107,6 +1107,7 @@ public class FragmentAccount extends FragmentEx {
|
|||
if (name.equals(account.name)) {
|
||||
final Snackbar snackbar = Snackbar.make(view, R.string.title_authorizing, Snackbar.LENGTH_SHORT);
|
||||
snackbar.show();
|
||||
|
||||
am.getAuthToken(
|
||||
account,
|
||||
Helper.getAuthTokenType(type),
|
||||
|
@ -1123,11 +1124,15 @@ public class FragmentAccount extends FragmentEx {
|
|||
authorized = token;
|
||||
etUser.setText(account.name);
|
||||
tilPassword.getEditText().setText(token);
|
||||
new Handler().postDelayed(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
snackbar.dismiss();
|
||||
}
|
||||
}, 1000);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(Helper.TAG, ex + "\n" + Log.getStackTraceString(ex));
|
||||
snackbar.setText(Helper.formatThrowable(ex));
|
||||
} finally {
|
||||
snackbar.dismiss();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue