Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 795b6490 authored by Subir Jhanb's avatar Subir Jhanb
Browse files

Changing the timeout for detecting syncs that are taking too long to bind

BUG: 5222661

Change-Id: I9406980e26a4ee30ac6d5470bc97928e3dc74d24
parent 13561602
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -192,10 +192,10 @@ public class SyncManager implements OnAccountsUpdateListener {
    private static final long SYNC_ALARM_TIMEOUT_MAX = 2 * 60 * 60 * 1000; // two hours

    /**
     * The amount of time to wait after attempting a bind before canceling a sync and disabling
     * the sync adapter
     * The amount of time (in milliseconds) to wait after attempting a bind
     * before canceling a sync and disabling the sync adapter
     */
    public static final long BIND_TIMEOUT_MS = 30 * 1000;
    public static final long BIND_TIMEOUT_MS = 5 * 60 * 1000;

    public void onAccountsUpdated(Account[] accounts) {
        // remember if this was the first time this was called after an update