From b4a9c1e302748b3d80924066858d2cdd3a486da1 Mon Sep 17 00:00:00 2001 From: James Lemieux Date: Tue, 15 Jul 2014 12:39:21 -0700 Subject: [PATCH] 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 --- src/com/android/email/provider/EmailConversationCursor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/email/provider/EmailConversationCursor.java b/src/com/android/email/provider/EmailConversationCursor.java index 6b83ad4c4..4a49caa9d 100644 --- a/src/com/android/email/provider/EmailConversationCursor.java +++ b/src/com/android/email/provider/EmailConversationCursor.java @@ -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));