Notify on message Uri when a message is deleted.

b/10919322

Change-Id: I0b39bcbc2e03c45fc0c161211c7cdacd97791c15
This commit is contained in:
Tony Mantler 2013-09-25 10:09:01 -07:00
parent 99b023353d
commit d17359c2b4

View File

@ -4523,6 +4523,7 @@ public class EmailProvider extends ContentProvider {
final int r = context.getContentResolver().delete( final int r = context.getContentResolver().delete(
ContentUris.withAppendedId(Message.SYNCED_CONTENT_URI, msg.mId), null, null); ContentUris.withAppendedId(Message.SYNCED_CONTENT_URI, msg.mId), null, null);
notifyUIFolder(mailbox.mId, mailbox.mAccountKey); notifyUIFolder(mailbox.mId, mailbox.mAccountKey);
notifyUIMessage(msg.mId);
return r; return r;
} }
Mailbox trashMailbox = Mailbox trashMailbox =
@ -4534,6 +4535,7 @@ public class EmailProvider extends ContentProvider {
values.put(MessageColumns.MAILBOX_KEY, trashMailbox.mId); values.put(MessageColumns.MAILBOX_KEY, trashMailbox.mId);
final int r = uiUpdateMessage(uri, values, true); final int r = uiUpdateMessage(uri, values, true);
notifyUIFolder(mailbox.mId, mailbox.mAccountKey); notifyUIFolder(mailbox.mId, mailbox.mAccountKey);
notifyUIMessage(msg.mId);
return r; return r;
} }