mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 14:11:00 +00:00
parent
67a2715b51
commit
f5dc237f3a
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ package eu.faircode.email;
|
|||
*/
|
||||
|
||||
import static android.os.Process.THREAD_PRIORITY_BACKGROUND;
|
||||
import static eu.faircode.email.ServiceAuthenticator.AUTH_TYPE_GMAIL;
|
||||
import static eu.faircode.email.ServiceAuthenticator.AUTH_TYPE_PASSWORD;
|
||||
|
||||
import android.app.AlarmManager;
|
||||
import android.app.Notification;
|
||||
|
@ -1708,7 +1708,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
Log.e(ex);
|
||||
|
||||
// Allow Android account manager to refresh the access token
|
||||
if (account.auth_type == AUTH_TYPE_GMAIL &&
|
||||
if (account.auth_type != AUTH_TYPE_PASSWORD &&
|
||||
state.getBackoff() <= CONNECT_BACKOFF_ALARM_START * 60)
|
||||
throw ex;
|
||||
|
||||
|
|
Loading…
Reference in a new issue