Added veiled pattern updates through provider

Change-Id: I09cef0865e3d29f44a93a3887ff72676ab868b14
This commit is contained in:
Vikram Aggarwal 2013-01-28 11:53:09 -08:00
parent 89bf520fdc
commit 4b09765a2e

View File

@ -2299,6 +2299,10 @@ outer:
}
private static ProjectionMap sFolderListMap;
/**
* Constructs the map of default entries for accounts. These values can be overridden in
* {@link #genQueryAccount(String[], String)}.
*/
private ProjectionMap getAccountListMap() {
if (sAccountListMap == null) {
sAccountListMap = ProjectionMap.builder()
@ -2326,6 +2330,7 @@ outer:
.add(UIProvider.AccountColumns.SettingsColumns.CONFIRM_ARCHIVE, "0")
.add(UIProvider.AccountColumns.SettingsColumns.CONVERSATION_VIEW_MODE,
Integer.toString(UIProvider.ConversationViewMode.UNDEFINED))
.add(UIProvider.AccountColumns.SettingsColumns.VEILED_ADDRESS_PATTERN, null)
.build();
}
return sAccountListMap;
@ -2867,7 +2872,6 @@ outer:
}
}
}
final StringBuilder sb = genSelect(getAccountListMap(), uiProjection, values);
sb.append(" FROM " + Account.TABLE_NAME + " WHERE " + AccountColumns.ID + "=?");
return sb.toString();