From 22e9efd44238802cc76ac18ec0c717640898df67 Mon Sep 17 00:00:00 2001 From: Paul Westbrook Date: Sun, 19 Aug 2012 13:21:34 -0700 Subject: [PATCH] Supports delete Make sure that all Email labels report supporting delete Bug: 7006885 Change-Id: Ia73b37f456d749debdf5c186a8ae688b9d8525b7 --- src/com/android/email/provider/EmailProvider.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/android/email/provider/EmailProvider.java b/src/com/android/email/provider/EmailProvider.java index 4ae90014c..f401cfc9e 100644 --- a/src/com/android/email/provider/EmailProvider.java +++ b/src/com/android/email/provider/EmailProvider.java @@ -2627,7 +2627,8 @@ outer: values.put(UIProvider.FolderColumns.LOAD_MORE_URI, uiUriString("uiloadmore", mailboxId)); } else { - int caps = UIProvider.FolderCapabilities.SUPPORTS_SETTINGS; + int caps = UIProvider.FolderCapabilities.SUPPORTS_SETTINGS | + UIProvider.FolderCapabilities.DELETE; if ((mailbox.mFlags & Mailbox.FLAG_ACCEPTS_MOVED_MAIL) != 0) { caps |= UIProvider.FolderCapabilities.CAN_ACCEPT_MOVED_MESSAGES; } @@ -2638,6 +2639,7 @@ outer: values.put(UIProvider.FolderColumns.CAPABILITIES, UIProvider.FolderCapabilities.CAN_ACCEPT_MOVED_MESSAGES | UIProvider.FolderCapabilities.CAN_HOLD_MAIL | + UIProvider.FolderCapabilities.DELETE | UIProvider.FolderCapabilities.DELETE_ACTION_FINAL); } if (isVirtualMailbox(mailboxId)) {