Remove attachment previews from Conversation List

This includes:

- all references to the 3 attachment preview columns in the Gmail
conversation table (except for migration code in MailStoreInitializer)
- all layout and drawing code for attachment previews in conversation list
- all assets related to attachment previews
- all preference and analytics code that aided attachment previews

NOTE: This does not alter, in any way, the display of attachments in
conversation view.

Change-Id: Iccefd2fcf146ccdad927e7911900f370baaf8a1d
This commit is contained in:
James Lemieux 2014-07-10 16:56:11 -07:00
parent f90dbc83e2
commit a546307c1d

View File

@ -3460,11 +3460,6 @@ public class EmailProvider extends ContentProvider
values.put(UIProvider.AccountColumns.SettingsColumns.CONV_LIST_ICON, values.put(UIProvider.AccountColumns.SettingsColumns.CONV_LIST_ICON,
getConversationListIcon(mailPrefs)); getConversationListIcon(mailPrefs));
} }
if (projectionColumns.contains(
UIProvider.AccountColumns.SettingsColumns.CONV_LIST_ATTACHMENT_PREVIEWS)) {
values.put(UIProvider.AccountColumns.SettingsColumns.CONV_LIST_ATTACHMENT_PREVIEWS,
"0");
}
if (projectionColumns.contains(UIProvider.AccountColumns.SettingsColumns.AUTO_ADVANCE)) { if (projectionColumns.contains(UIProvider.AccountColumns.SettingsColumns.AUTO_ADVANCE)) {
values.put(UIProvider.AccountColumns.SettingsColumns.AUTO_ADVANCE, values.put(UIProvider.AccountColumns.SettingsColumns.AUTO_ADVANCE,
Integer.toString(mailPrefs.getAutoAdvanceMode())); Integer.toString(mailPrefs.getAutoAdvanceMode()));
@ -3691,11 +3686,6 @@ public class EmailProvider extends ContentProvider
values[colPosMap.get(UIProvider.AccountColumns.SettingsColumns.CONV_LIST_ICON)] = values[colPosMap.get(UIProvider.AccountColumns.SettingsColumns.CONV_LIST_ICON)] =
getConversationListIcon(mailPrefs); getConversationListIcon(mailPrefs);
} }
if (colPosMap.containsKey(
UIProvider.AccountColumns.SettingsColumns.CONV_LIST_ATTACHMENT_PREVIEWS)) {
values[colPosMap.get(
UIProvider.AccountColumns.SettingsColumns.CONV_LIST_ATTACHMENT_PREVIEWS)] = 0;
}
if (colPosMap.containsKey(UIProvider.AccountColumns.SettingsColumns.CONFIRM_DELETE)) { if (colPosMap.containsKey(UIProvider.AccountColumns.SettingsColumns.CONFIRM_DELETE)) {
values[colPosMap.get(UIProvider.AccountColumns.SettingsColumns.CONFIRM_DELETE)] = values[colPosMap.get(UIProvider.AccountColumns.SettingsColumns.CONFIRM_DELETE)] =
mailPrefs.getConfirmDelete() ? 1 : 0; mailPrefs.getConfirmDelete() ? 1 : 0;