Small fix

This commit is contained in:
M66B 2022-08-13 07:06:04 +02:00
parent c2b2016680
commit 05ac509866
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ public class ServiceAuthenticator extends Authenticator {
if (needsRefresh)
authState.setNeedsTokenRefresh(true);
if (needsRefresh) {
if (needsRefresh || authState.getNeedsTokenRefresh()) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
String key = "token." + id + "." + user;
long last_refresh = prefs.getLong(key, 0);