am 8917e52d: Fix regression that prevents calendar sync w/ new accounts

Merge commit '8917e52db0a872dc6438f0055669d2393febfbb7' into froyo-plus-aosp

* commit '8917e52db0a872dc6438f0055669d2393febfbb7':
  Fix regression that prevents calendar sync w/ new accounts
This commit is contained in:
Marc Blank 2010-04-28 17:21:08 -07:00 committed by Android Git Automerger
commit 8048f0fef8

View File

@ -668,7 +668,9 @@ public class SyncManager extends Service implements Runnable {
if (observer != null) { if (observer != null) {
return (observer.mSyncEvents == 1); return (observer.mSyncEvents == 1);
} }
return false; // If there's no observer, there's no Calendar in CalendarProvider2, so we return true
// to allow Calendar creation
return true;
} }
private class CalendarObserver extends ContentObserver { private class CalendarObserver extends ContentObserver {