am 5b2b2484: Default status of added email to 1 (success)

* commit '5b2b2484666e36fa78907329736260cc760c6c96':
  Default status of added email to 1 (success)
This commit is contained in:
Marc Blank 2011-01-17 14:42:13 -08:00 committed by Android Git Automerger
commit 134a2818f4

View File

@ -413,7 +413,8 @@ public class EmailSyncAdapter extends AbstractSyncAdapter {
msg.mAccountKey = mAccount.mId;
msg.mMailboxKey = mMailbox.mId;
msg.mFlagLoaded = Message.FLAG_LOADED_COMPLETE;
int status = -1;
// Default to 1 (success) in case we don't get this tag
int status = 1;
while (nextTag(Tags.SYNC_ADD) != END) {
switch (tag) {