mirror of https://github.com/M66B/FairEmail.git
Small fix
This commit is contained in:
parent
c2b2016680
commit
05ac509866
|
@ -162,7 +162,7 @@ public class ServiceAuthenticator extends Authenticator {
|
||||||
if (needsRefresh)
|
if (needsRefresh)
|
||||||
authState.setNeedsTokenRefresh(true);
|
authState.setNeedsTokenRefresh(true);
|
||||||
|
|
||||||
if (needsRefresh) {
|
if (needsRefresh || authState.getNeedsTokenRefresh()) {
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
String key = "token." + id + "." + user;
|
String key = "token." + id + "." + user;
|
||||||
long last_refresh = prefs.getLong(key, 0);
|
long last_refresh = prefs.getLong(key, 0);
|
||||||
|
|
Loading…
Reference in New Issue