Add ACCOUNT_ID to ACCOUNT_COLUMNS and populate it with Email from

EmailProvider.

b/16400882

Change-Id: I2765fa6cea392e07b878fe063c7234582a485b1d
This commit is contained in:
Ray Chen 2014-07-22 11:31:37 +02:00
parent ae028b6c70
commit 045aa05777

View File

@ -2748,6 +2748,8 @@ public class EmailProvider extends ContentProvider
.add(UIProvider.AccountColumns.NAME, AccountColumns.DISPLAY_NAME) .add(UIProvider.AccountColumns.NAME, AccountColumns.DISPLAY_NAME)
.add(UIProvider.AccountColumns.ACCOUNT_MANAGER_NAME, .add(UIProvider.AccountColumns.ACCOUNT_MANAGER_NAME,
AccountColumns.EMAIL_ADDRESS) AccountColumns.EMAIL_ADDRESS)
.add(UIProvider.AccountColumns.ACCOUNT_ID,
AccountColumns.EMAIL_ADDRESS)
.add(UIProvider.AccountColumns.SENDER_NAME, .add(UIProvider.AccountColumns.SENDER_NAME,
AccountColumns.SENDER_NAME) AccountColumns.SENDER_NAME)
.add(UIProvider.AccountColumns.UNDO_URI, .add(UIProvider.AccountColumns.UNDO_URI,
@ -3639,6 +3641,9 @@ public class EmailProvider extends ContentProvider
values[colPosMap.get(UIProvider.AccountColumns.ACCOUNT_MANAGER_NAME)] = values[colPosMap.get(UIProvider.AccountColumns.ACCOUNT_MANAGER_NAME)] =
getContext().getString(R.string.mailbox_list_account_selector_combined_view); getContext().getString(R.string.mailbox_list_account_selector_combined_view);
} }
if (colPosMap.containsKey(UIProvider.AccountColumns.ACCOUNT_ID)) {
values[colPosMap.get(UIProvider.AccountColumns.ACCOUNT_ID)] = "Account Id";
}
if (colPosMap.containsKey(UIProvider.AccountColumns.TYPE)) { if (colPosMap.containsKey(UIProvider.AccountColumns.TYPE)) {
values[colPosMap.get(UIProvider.AccountColumns.TYPE)] = "unknown"; values[colPosMap.get(UIProvider.AccountColumns.TYPE)] = "unknown";
} }