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:
commit
8048f0fef8
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user