From 5b2b2484666e36fa78907329736260cc760c6c96 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Mon, 17 Jan 2011 13:40:11 -0800 Subject: [PATCH] Default status of added email to 1 (success) Change-Id: I3825916001e5659fa5465156dbe2d796f0b25444 --- src/com/android/exchange/adapter/EmailSyncAdapter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/exchange/adapter/EmailSyncAdapter.java b/src/com/android/exchange/adapter/EmailSyncAdapter.java index 2c1eabebe..e175272db 100644 --- a/src/com/android/exchange/adapter/EmailSyncAdapter.java +++ b/src/com/android/exchange/adapter/EmailSyncAdapter.java @@ -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) {