From 901faf1bfb3473b4e40ccd82dab3f3f99eb599bb Mon Sep 17 00:00:00 2001 From: Yu Ping Hu Date: Fri, 16 Aug 2013 18:30:44 -0700 Subject: [PATCH] Allow deletion from virtual folders. Bug: 10367404 Change-Id: I869dfc5af7064e2992bbd47c89fd990e2caaa701 --- src/com/android/email/provider/EmailProvider.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/android/email/provider/EmailProvider.java b/src/com/android/email/provider/EmailProvider.java index f08e04e35..7c11fddab 100644 --- a/src/com/android/email/provider/EmailProvider.java +++ b/src/com/android/email/provider/EmailProvider.java @@ -33,11 +33,11 @@ import android.content.res.Resources; import android.database.ContentObserver; import android.database.Cursor; import android.database.CursorWrapper; +import android.database.DatabaseUtils; import android.database.MatrixCursor; import android.database.MergeCursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteException; -import android.database.DatabaseUtils; import android.net.Uri; import android.os.AsyncTask; import android.os.Binder; @@ -112,7 +112,6 @@ import java.io.FileNotFoundException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; -import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; @@ -2880,7 +2879,8 @@ public class EmailProvider extends ContentProvider { getFolderTypeFromMailboxType(mailboxType), ""); // default empty string since all of these should use resource strings values[UIProvider.FOLDER_HAS_CHILDREN_COLUMN] = 0; - values[UIProvider.FOLDER_CAPABILITIES_COLUMN] = UIProvider.FolderCapabilities.IS_VIRTUAL; + values[UIProvider.FOLDER_CAPABILITIES_COLUMN] = + UIProvider.FolderCapabilities.DELETE | UIProvider.FolderCapabilities.IS_VIRTUAL; values[UIProvider.FOLDER_CONVERSATION_LIST_URI_COLUMN] = combinedUriString("uimessages", idString);