mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-26 02:45:31 +01:00
Fixed refresh account tokens in some cases
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user