Marking conversations read/unread in the TL removes the snippet text

b/16322573

EmailConversationCursor was not populating the firstUnreadSnippet and
lastSnippet values in ConversationInfo. When they remain null and are
subsequently set as the snippet text, it effectively removes the snippet.

Change-Id: I1c17508bbc8857d00d8678dca4a7ad791dcae049
This commit is contained in:
James Lemieux 2014-07-15 12:39:21 -07:00
parent 5c93d36616
commit b4a9c1e302
1 changed files with 2 additions and 0 deletions

View File

@ -176,6 +176,8 @@ public class EmailConversationCursor extends CursorWrapper implements
final ConversationInfo conversationInfo = new ConversationInfo(numMessages);
conversationInfo.firstSnippet = getString(getColumnIndex(ConversationColumns.SNIPPET));
conversationInfo.lastSnippet = conversationInfo.firstSnippet;
conversationInfo.firstUnreadSnippet = conversationInfo.firstSnippet;
final boolean isRead = getInt(getColumnIndex(ConversationColumns.READ)) != 0;
final String senderString = getString(getColumnIndex(EmailContent.MessageColumns.DISPLAY_NAME));