History log of /packages/apps/UnifiedEmail/src/com/android/mail/ContactInfo.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8913ca6aebe6017efe8060b61b8ad38eda95aa8b 15-May-2014 Andrew Sapperstein <asapperstein@google.com> Allow alternate sources for contact images.

Makes some classes that overridable in order
to provide alternative implementations:
ContactResolver, ContactResolverTask, ContactLoaderCallbacks,
and ContactPhotoFetcher all can be subclassed to provide new
behavior. Also added hooks in ControllableActivity
and MailIntentService to override building these classes.

NotificationUtils was also updated to force all calls
through MailIntentService which can be overridden.

Finally, moved the BitmapCache used in conversation list
to the activity level instead of at AnimatedAdapter-level
(which is effectively fragment level). This speeds up subsequent
queries for images dramatically. We reset the cache when changing
accounts.

b/11387812.

Change-Id: Ie70d800862b073163ccbfa5295d6950e57d64009
/packages/apps/UnifiedEmail/src/com/android/mail/ContactInfo.java
a8301e2eb5a083a73f58331279c86e8ec7b11a48 22-Aug-2013 Mark Wei <markwei@google.com> Use Drawables for senders image. Less animation jank, less GC jank, less memory.

Protip: When testing sender images, go to your Sent folder. Tons of senders
images appear because you are most likely to talk to people in your address
book.

Rewrite UI to use modular Drawables. It's much easier to understand, since
Drawables with different functionality can be composed.

Flipping animation is 10x smoother. Handles quick double-tap on senders image
correctly.

Letter tiles are not allocated bitmaps anymore. They simply draw a rect and a
letter to the canvas.

We are no longer allocating large bitmaps for every list item. We reuse Bitmaps
whenever possible the same way that attachment previews do.

Much smaller 339KB cache since we don't share with attachment previews anymore,
just enough to fit 10 off-screen contact images.

Bug: 10429228
Change-Id: I463b63520d881eefe3974dccf295366831adaf9e
/packages/apps/UnifiedEmail/src/com/android/mail/ContactInfo.java
94898ce43cba909e53378deb267658b9cc05ffee 08-May-2013 Andrew Sapperstein <asapperstein@google.com> Make sender photos match between conv list & view.

Fixes b/8770455 for a device. Other devices may
return slightly different images but on a single device,
the sender images in the conversation list will match the
sender images in the conversation view.

The code in SenderInfoLoader was refactored into
one big static method called loadContactPhotos. That
method has a switch for whether to decode the bitmaps
or just return the byte array. Then, in PhotoManager,
some of the use of Object was changed to use their actual
types (Long or String). Finally, loadPhotos in ContactPhotoManager
was wired up to use the static method in SenderInfoLoader.
As a result, the images now match.

Change-Id: Ia8490ddfa11d5e3233d6ef6a642dabf2a8213af2
/packages/apps/UnifiedEmail/src/com/android/mail/ContactInfo.java
b8331b4565566ca733997398e8c07a26cd2bee98 17-Jul-2012 Andy Huang <ath@google.com> wire up Quick Contacts

Also generalized telling header items whether or not a bind is
only for the sake of height measurement.

Bug: 6373134
Change-Id: I759e4fd95dca874b29a7e3b392ee83f7e7e6f760
/packages/apps/UnifiedEmail/src/com/android/mail/ContactInfo.java