|
|
|
@ -1401,7 +1401,12 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|
|
|
|
} else {
|
|
|
|
|
Log.e(ex);
|
|
|
|
|
try {
|
|
|
|
|
state.setBackoff(2 * CONNECT_BACKOFF_ALARM_MAX * 60);
|
|
|
|
|
int backoff = state.getBackoff();
|
|
|
|
|
if (backoff < 2 * CONNECT_BACKOFF_ALARM_MAX * 60)
|
|
|
|
|
backoff = 2 * CONNECT_BACKOFF_ALARM_MAX * 60;
|
|
|
|
|
else if (backoff < 8 * CONNECT_BACKOFF_ALARM_MAX * 60)
|
|
|
|
|
backoff *= 2;
|
|
|
|
|
state.setBackoff(backoff);
|
|
|
|
|
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
|
|
|
|
|
nm.notify("receive:" + account.id,
|
|
|
|
|
NotificationHelper.NOTIFICATION_TAGGED,
|
|
|
|
|