From 85a78c749586993746ab62ef1b1f48832525afb7 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Fri, 28 Aug 2009 10:24:27 -0700 Subject: [PATCH] Fix upload of read state for Exchange emails Change-Id: Id5959f9c2394644e88b3961dea24f54ff1ad7141 --- src/com/android/exchange/adapter/EmailSyncAdapter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/android/exchange/adapter/EmailSyncAdapter.java b/src/com/android/exchange/adapter/EmailSyncAdapter.java index 2cd43c2a7..18324ff42 100644 --- a/src/com/android/exchange/adapter/EmailSyncAdapter.java +++ b/src/com/android/exchange/adapter/EmailSyncAdapter.java @@ -613,7 +613,8 @@ public class EmailSyncAdapter extends AbstractSyncAdapter { } // Send the command to delete this message s.start(Tags.SYNC_DELETE) - .data(Tags.SYNC_SERVER_ID, currentCursor.getString(UPDATES_SERVER_ID_COLUMN)) + .data(Tags.SYNC_SERVER_ID, + currentCursor.getString(UPDATES_SERVER_ID_COLUMN)) .end(); // SYNC_DELETE continue; } @@ -632,7 +633,7 @@ public class EmailSyncAdapter extends AbstractSyncAdapter { } int read = currentCursor.getInt(UPDATES_READ_COLUMN); - if (read == c.getInt(Message.LIST_READ_COLUMN)) { + if (read != c.getInt(Message.LIST_READ_COLUMN)) { readChange = true; }