Merge change Ib35bb866 into eclair-mr2

* changes:
  Don't allow "trash" to be synced (Fixes #2116463)
This commit is contained in:
Android (Google) Code Review 2009-11-19 08:57:39 -08:00
commit 6b93f61eea

View File

@ -294,8 +294,8 @@ public class SyncManager extends Service implements Runnable {
kick("start outbox");
// Outbox can't be synced in EAS
return;
} else if (m.mType == Mailbox.TYPE_DRAFTS) {
// Drafts can't be synced in EAS
} else if (m.mType == Mailbox.TYPE_DRAFTS || m.mType == Mailbox.TYPE_TRASH) {
// Drafts & Trash can't be synced in EAS
return;
}
startManualSync(mailboxId, SyncManager.SYNC_SERVICE_START_SYNC, null);