History log of /packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3b59b333ad0693f74f9a8cfb24a468a8acbaca8c 10-Jan-2014 James Lemieux <jplemieux@google.com> Mail in Sent, Drafts and Outbox should show addressees, not sender.

b/10847599

This is the second attempt at fixing this bug. The strategy has changed entirely to accommodate
GMail as well as reuse formatting rules that squish the list of conversation participants into an
abbreviated line for display in conversation lists.

ConversationInfo used to include a List<MessageInfo> which was used to answer questions about
which senders had read which messages in the thread. This has been removed and replaced with a
List<ParticipantInfo>. The backend should populate that list with appropriate conversation
participants (e.g. recipients of the last message in the case of Sent, Drafts or Outbox; senders
for all other mailbox types)

Change-Id: I834223c55296bcd2509fdf544634c155594739b0
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
7cad28070b4e903e4ce05e5fc610988f71630f97 10-Jan-2014 James Lemieux <jplemieux@google.com> Remove Print/Print All from conversation view in Email.

b/12245916 A secondary change in this defect is to dynamically show either Print or Print All in
GMail conversation menus depending on whether the conversation includes 1 or many messages.

Change-Id: If78dced66893c0ae619850f2272c007747e98e26
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
edd6c1a2807d2ade930dfd4622707298dc470d64 08-Oct-2013 Tony Mantler <nicoya@google.com> ConversationInfo is now always populated

Get rid of conditionals for when it isn't, and associated duplicated fields

b/11120430

Change-Id: I63d8ef5d190b9a4d42e3029bb4a45004b5543de5
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
8c36df9e90dfd2a438f9b15daf3b56b442f01478 24-May-2013 Andy Huang <ath@google.com> size message info list exactly, part 1

Bug: 9032162
Change-Id: Ibdbe63dc699d8aa5600a255798f10bb5274e08c2
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
81230ee24b65099109ee91add5a137d3795c454a 27-Feb-2013 Vikram Aggarwal <viki@google.com> Add logging to debug mark unread

Also, log problems with not finding the CLF only on tablets, where we
expect the CLF.

And only exit detached mode if we were in detached mode.

Bug: 7326925 Mark Unread Non-Functional When Viewing Message

Change-Id: I9eb8d8ac28f7c95c5c865f1051c5ed0baa066ec4
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
ae96226b7bbb4038c1aa68fce758ad6384c65889 21-Dec-2012 mindyp <mindyp@google.com> Set sender email in messageinfo

Change-Id: I8b54e773a629668af9b51934cec0c9f2a7ccadaa
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
2ee9005581f402f51c53c037679bfbfd48114340 11-Dec-2012 Andy Huang <ath@google.com> using Parcel's typed lists means no class loaders needed

Change-Id: Ic59a93e656170f051a3c7851d367433398f79836
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
4acbdd280d58d464c02b43759214906dd48d91bb 11-Dec-2012 Andy Huang <ath@google.com> Merge "Convert rawFolders from String to FolderList" into jb-ub-mail-ur8
b2033d855ab0f13e253e5403ce25989bcbc49488 08-Dec-2012 Andy Huang <ath@google.com> Convert rawFolders from String to FolderList

Continuing in the Parcel > String vein, switch rawFolders to use
FolderList, a small immutable Parcelable class. Individual
Folder objects are still stringified when used alone, but those
are not time-sensitive cases (e.g. generating a view intent).

Traceview on Nexus 7 shows 61% speedup in serializing and
deserializing folder rawFolders. Overall time for Conversation
construction appears to go up, but that's because the previously
lazy-deserialization is now done in the constructor. I think
this is okay, since the only performance-sensitive codepath
that constructs Conversation objects is the conversation list,
which always needs rawFolders.

Bug: 7690709
Change-Id: I42eadd79aaeb260f3d9642bf930437a69e510282
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
09cb391d6040e1648cde6b549548193d2aa51010 11-Dec-2012 Andy Huang <ath@google.com> fix ConversationInfo NPEs

Bug: 7710206
Change-Id: I277381ae67a243802d4a4d4ba17a9f4c9c8a8ebf
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
351ad4e87e0b0b98df9ca88266a8a63541dc5a81 07-Dec-2012 Andy Huang <ath@google.com> use parcel intermediate format for ConversationInfo

Instead of passing ConversationInfo/MessageInfo around as
Strings from provider->UI, use Cursor's blob functionality where
the blob is the marshalled form of the parceled Info objects.

This should be a acceptable use of Parcel, given that we are not
persisting this form, and it only exists to facilitate
provider/UI communication through the generic Cursor interface.

Parcel blobs are fast, well-tested, and do not require
input sanitization.

Traceview testing reveals pretty good gains in Conversation
construction (29% faster on Nexus 7), which is most of the work
in getView().

Change-Id: I05451fba2201ca2f2c3ee76c80fb356c36e8ccad
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
a88fbbaa07312640b9a337a3e06b7b5e0f60a521 21-Nov-2012 Andy Huang <ath@google.com> sanitize user input in Conversation/MessageInfo

Certain strings in a sender's name or message snippet could
cause ConversationInfo/MessageInfo objects to become malformed.
Escape the critical '^' (caret) character to prevent any string
input from appearing like a delimiter.

Bug: 7593796
Change-Id: I70266410c738d366be6ec4d6b00413543a9e22db
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
2909b7442130800d6c6c20c1227d65295262f03e 10-Oct-2012 mindyp <mindyp@google.com> reduce allocations: No need to alloc a new string builder here; store formatting string

Can just append to the existing string builder.
Dont make a conversationinfo/messageinfo object to then just turn it into
a string to be turned into an object
just make it a string representation to begin with
Change-Id: Ie7d4e382a5e97a28860f90e7597974074e52e130
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
7f55c685376659550ed11b047a78cd8d70158ad9 04-Oct-2012 mindyp <mindyp@google.com> Use initial version of the cc cache fix.

We need to selectively do a few things:
1) dont update the conversationinfo if we haven't changed the read state;
this means we wont override the cached conversation info unless totally necessary
2) add sendingstatus to the set of flags we check to see whether or not to redraw
the conversation item

uses marc's initial cc fix

Fixes b/7258975 Reading conversations doesn't immediately mark them as read in UI

Change-Id: I647ebb3d20115b5f73ef50ad0fb860d067d4dfd7
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
78d4974e8aaa22f60ac8974937446db52c9ba755 13-Aug-2012 Paul Westbrook <pwestbro@google.com> Fixed NPE in hashCode() with null strings

Change-Id: I39ae0adce99e25a596aee92f133c0656ae789561
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
c4cecabd7a505fe005a6ceddab44a08bb80d9700 09-Aug-2012 Paul Westbrook <pwestbro@google.com> Allow object reuse

Allow MessageInfo and ConversationInfo instances to be reused. This
can help to reduce allocation when scrolling in the conversation list

Change-Id: I0a984e9ef07738b390193d05cfd4e7a20f11cfef
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
5f424372f9a801120b5dc8d3f56e907baaa04e25 30-Jul-2012 Mindy Pereira <mindyp@google.com> Splitting strings == faster than json

Cut the time to create Conversation() nearly in half
Went from 43ms/per to 26ms/per
Change-Id: I3353c5406ba40116ce2906376369acde8d30cb7d
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
c3efca18f09904f4ce39395169559c5d82bd3d06 28-Jul-2012 Mindy Pereira <mindyp@google.com> We weren't using the cached header models correctly.

This should speed up scrolling since we allocate fewer objects.
Also, fixes the issue where we were not properly creating a new layout
when the read state of a message changed in the case where a user opened
an unread message and then went back. Now, all the senders are properly
bolded/ unbolded.

Removed the deprecated conversationInfo.sendersInfo, which was only being used
by gmail, and had been replaced by using the proper messageinfos
Also, performed some surgery on the widgetviews so that it acutally
uses the messageInfo from conversation info

Change-Id: I43fde9cd23ebc12f2de68e0d18b941304b4a2be7
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
00c67ae6212de5b56c0c94af185061ee2fa36925 23-Jul-2012 Mindy Pereira <mindyp@google.com> Unparcel conversation info when restoring a conversation.

Change-Id: I987612417c190ad1e0f1478401c2a795b08d9bfc
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
aa1f945612847bc4cf5c8909b8acfab4b5ecf54e 23-Jul-2012 Mindy Pereira <mindyp@google.com> Add snippet logic when marking read/ unread.

Change-Id: I497344c4361616c8ec293ee89ea99ce9c1a5f2fc
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
6c2663dc9cade8aff34c462d244e3d72c475c664 21-Jul-2012 Mindy Pereira <mindyp@google.com> Update conversation read state on the ui side.

Change-Id: I372464e23c39131b45c20ad8bd72ddd6207a1bb5
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java
648df3f0b0ebcd3c4adf907d70ff0938e5dfc78f 19-Jul-2012 Mindy Pereira <mindyp@google.com> JSON objects for conversation and messageinfo.

Used by UI to pre-update sender fields instead of waiting for a content
provider updatee

Step 1. Not checking in until all the CL's are ready to go.
Change-Id: Ib75e4f875fde7989e43fe15297030a4c7e7241b5
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ConversationInfo.java