Merge change 24069 into eclair

* changes:
  Have SyncManager stopSelf if there are no EAS accounts
This commit is contained in:
Android (Google) Code Review 2009-09-06 10:46:49 -07:00
commit c688b085d0

View File

@ -26,7 +26,6 @@ import com.android.email.provider.EmailContent.HostAuthColumns;
import com.android.email.provider.EmailContent.Mailbox; import com.android.email.provider.EmailContent.Mailbox;
import com.android.email.provider.EmailContent.MailboxColumns; import com.android.email.provider.EmailContent.MailboxColumns;
import com.android.email.provider.EmailContent.Message; import com.android.email.provider.EmailContent.Message;
import com.android.email.provider.EmailContent.MessageColumns;
import com.android.email.provider.EmailContent.SyncColumns; import com.android.email.provider.EmailContent.SyncColumns;
import com.android.exchange.utility.FileLogger; import com.android.exchange.utility.FileLogger;
@ -667,6 +666,10 @@ public class SyncManager extends Service implements Runnable {
} }
maybeStartSyncManagerThread(); maybeStartSyncManagerThread();
if (sServiceThread == null) {
Log.d(TAG, "!!! EAS SyncManager stopping self");
stopSelf();
}
} }
@Override @Override