From d17359c2b4e39baa426c7bce09f1a5d293378c77 Mon Sep 17 00:00:00 2001 From: Tony Mantler Date: Wed, 25 Sep 2013 10:09:01 -0700 Subject: [PATCH] Notify on message Uri when a message is deleted. b/10919322 Change-Id: I0b39bcbc2e03c45fc0c161211c7cdacd97791c15 --- src/com/android/email/provider/EmailProvider.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/email/provider/EmailProvider.java b/src/com/android/email/provider/EmailProvider.java index 103ac6749..c8b134090 100644 --- a/src/com/android/email/provider/EmailProvider.java +++ b/src/com/android/email/provider/EmailProvider.java @@ -4523,6 +4523,7 @@ public class EmailProvider extends ContentProvider { final int r = context.getContentResolver().delete( ContentUris.withAppendedId(Message.SYNCED_CONTENT_URI, msg.mId), null, null); notifyUIFolder(mailbox.mId, mailbox.mAccountKey); + notifyUIMessage(msg.mId); return r; } Mailbox trashMailbox = @@ -4534,6 +4535,7 @@ public class EmailProvider extends ContentProvider { values.put(MessageColumns.MAILBOX_KEY, trashMailbox.mId); final int r = uiUpdateMessage(uri, values, true); notifyUIFolder(mailbox.mId, mailbox.mAccountKey); + notifyUIMessage(msg.mId); return r; }