mirror of https://github.com/M66B/FairEmail.git
Fixed refresh account tokens in some cases
This commit is contained in:
parent
8c010244e6
commit
e528fa3f00
|
@ -73,7 +73,7 @@ public class GmailState {
|
|||
expiration - ServiceAuthenticator.MIN_FORCE_REFRESH_INTERVAL < now)
|
||||
needsRefresh = true;
|
||||
|
||||
if (needsRefresh) {
|
||||
if (needsRefresh && token != null) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
String key = "token." + id + "." + user;
|
||||
long last_refresh = prefs.getLong(key, 0);
|
||||
|
|
Loading…
Reference in New Issue