Default status of added email to 1 (success)

Change-Id: I3825916001e5659fa5465156dbe2d796f0b25444
This commit is contained in:
Marc Blank 2011-01-17 13:40:11 -08:00
parent f32bb6e570
commit 5b2b248466

View File

@ -413,7 +413,8 @@ public class EmailSyncAdapter extends AbstractSyncAdapter {
msg.mAccountKey = mAccount.mId; msg.mAccountKey = mAccount.mId;
msg.mMailboxKey = mMailbox.mId; msg.mMailboxKey = mMailbox.mId;
msg.mFlagLoaded = Message.FLAG_LOADED_COMPLETE; 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) { while (nextTag(Tags.SYNC_ADD) != END) {
switch (tag) { switch (tag) {