From 795b6490fef91376698f01476e76af7fb00d3b2c Mon Sep 17 00:00:00 2001 From: Subir Jhanb Date: Thu, 8 Sep 2011 13:12:21 -0700 Subject: [PATCH] Changing the timeout for detecting syncs that are taking too long to bind BUG: 5222661 Change-Id: I9406980e26a4ee30ac6d5470bc97928e3dc74d24 --- core/java/android/content/SyncManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/java/android/content/SyncManager.java b/core/java/android/content/SyncManager.java index ef6e1312a5f99..d4ed4b91c9d82 100644 --- a/core/java/android/content/SyncManager.java +++ b/core/java/android/content/SyncManager.java @@ -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