am 3bdce9b5: Remove server-side sanitized HTML capability; add client-side santized HTML capability

* commit '3bdce9b515f6bde3506596a6b5d3bdbaff9b7423':
  Remove server-side sanitized HTML capability; add client-side santized HTML capability
This commit is contained in:
James Lemieux 2014-11-02 15:32:13 +00:00 committed by Android Git Automerger
commit 7266502c44

View File

@ -860,7 +860,7 @@ public class EmailProvider extends ContentProvider
//public static Uri UIPROVIDER_SETTINGS_NOTIFIER; //public static Uri UIPROVIDER_SETTINGS_NOTIFIER;
private static Uri UIPROVIDER_ATTACHMENT_NOTIFIER; private static Uri UIPROVIDER_ATTACHMENT_NOTIFIER;
private static Uri UIPROVIDER_ATTACHMENTS_NOTIFIER; private static Uri UIPROVIDER_ATTACHMENTS_NOTIFIER;
public static Uri UIPROVIDER_ALL_ACCOUNTS_NOTIFIER; private static Uri UIPROVIDER_ALL_ACCOUNTS_NOTIFIER;
private static Uri UIPROVIDER_MESSAGE_NOTIFIER; private static Uri UIPROVIDER_MESSAGE_NOTIFIER;
private static Uri UIPROVIDER_RECENT_FOLDERS_NOTIFIER; private static Uri UIPROVIDER_RECENT_FOLDERS_NOTIFIER;
@ -3394,8 +3394,8 @@ public class EmailProvider extends ContentProvider
// TODO: Should this be stored per-account, or some other mechanism? // TODO: Should this be stored per-account, or some other mechanism?
capabilities |= AccountCapabilities.NESTED_FOLDERS; capabilities |= AccountCapabilities.NESTED_FOLDERS;
// sanitization happens lazily in the EmailMessageCursor as HTML email bodies are requested // the client is permitted to sanitize HTML emails for all Email accounts
capabilities |= UIProvider.AccountCapabilities.SANITIZED_HTML; capabilities |= AccountCapabilities.CLIENT_SANITIZED_HTML;
return capabilities; return capabilities;
} }