Merge commit '5aac4a74961b4424e6cf3d263aee51c76d5e9e55' * commit '5aac4a74961b4424e6cf3d263aee51c76d5e9e55': Fix bug #2071895 (NPE); remove unused method.
This commit is contained in:
commit
ca06839da6
@ -1424,8 +1424,10 @@ public class SyncManager extends Service implements Runnable {
|
||||
if (INSTANCE.mServiceMap.get(mailboxId) == null) {
|
||||
INSTANCE.mSyncErrorMap.remove(mailboxId);
|
||||
Mailbox m = Mailbox.restoreMailboxWithId(INSTANCE, mailboxId);
|
||||
INSTANCE.log("Starting sync for " + m.mDisplayName);
|
||||
INSTANCE.startService(m, reason, req);
|
||||
if (m != null) {
|
||||
INSTANCE.log("Starting sync for " + m.mDisplayName);
|
||||
INSTANCE.startService(m, reason, req);
|
||||
}
|
||||
}
|
||||
}
|
||||
return INSTANCE.mServiceMap.get(mailboxId);
|
||||
@ -1461,17 +1463,6 @@ public class SyncManager extends Service implements Runnable {
|
||||
}
|
||||
}
|
||||
|
||||
static public void kick(long mailboxId) {
|
||||
if (INSTANCE == null) return;
|
||||
Mailbox m = Mailbox.restoreMailboxWithId(INSTANCE, mailboxId);
|
||||
int syncType = m.mSyncInterval;
|
||||
if (syncType == Mailbox.CHECK_INTERVAL_PUSH) {
|
||||
SyncManager.serviceRequestImmediate(mailboxId);
|
||||
} else {
|
||||
SyncManager.startManualSync(mailboxId, SYNC_KICK, null);
|
||||
}
|
||||
}
|
||||
|
||||
static public void accountUpdated(long acctId) {
|
||||
if (INSTANCE == null) return;
|
||||
synchronized (sSyncToken) {
|
||||
|
Loading…
Reference in New Issue
Block a user