History log of /packages/apps/UnifiedEmail/src/com/android/mail/bitmap/AccountAvatarDrawable.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c12da4a53eee911765975f0d8afe62f749806b60 25-Sep-2014 Jin Cao <jinyan@google.com> Prevent contact icons from cropping

The main issue is caused by DecodeTask when the decoded bitmap
is bigger than the desired size. In some situations, the algorithm
will crop the decoded bitmap down to the desired size.

Since the size returned from the API is always capped at 96px by
96px, we can just use that when building our bitmap buffer size
so that DecodeTask will rarely (I say rarely because it's possible
for the user to upload a 10px by 10px contact photo, but that is
extremely rare considering how big 96x96 is) have to crop the
resulting image when decoding. The destination (either ImageView
or an image drawable) will then scale the image accordingly.

I also noticed a LOT of overlap between AccountAvatarDrawable
and ContactDrawable, so I refactored them into a common base
class and allow child classes to override default drawable.

b/17319292

Change-Id: I96b9fe39769e434fb45cebe11f9699d3259960df
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/AccountAvatarDrawable.java
f58e4c3c942033fce12b5f75f9e4d9e708c9ea6a 10-Jul-2014 Andy Huang <ath@google.com> mini-drawer. new tablet UI.

New MiniDrawerView class for a minimized drawer UI with shortcuts to the
main drawer logic to switch accounts and folders. The "drawer" is now
always visible except in portrait conversation view.

Can't easily use an actual DrawerLayout because:
-drawers usually occlude other views, they don't push
-we have that omnipresent 'mini' version
-we want custom control over dragging to trigger a fancy animation (not
just edge swipe!)
(I'll revisit this later.)

Even ActionBarDrawerToggle alone can't be used w/o DrawerLayout, so for
now, all of this drawer logic (dragging not yet implemented) is from
scratch.

TwoPaneLayout no longer "shifts" its panes to transition from TL->CV in
landscape; the panes are now fixed in position. Not yet implemented is a
'conversation-visible-but-not-marked-read' state necessary to avoid the
initial gray expanse there right now.

Bug: 16147175
Change-Id: I021aaff15afebb76db6722265e2a592213674405
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/AccountAvatarDrawable.java
5f79af7b356c3a8ecd8cd77fcbde673de9023b50 15-Jul-2014 James Lemieux <jplemieux@google.com> Implement circular icons in Conversation List

This crosscuts three UI elements:

- the border around contact images
- the border around letter tiles
- the border around checkmarks

Change-Id: I86dee47282cded696d7658a87e69223244358d68
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/AccountAvatarDrawable.java
2b806edc62eb8e83c77edc471fda4652281a15c4 11-Jul-2014 James Lemieux <jplemieux@google.com> Replace all references to UnifiedEmail's com.android.oldbitmap with
equivalent usage of framework's com.android.bitmap.

A small refactor of AccountAvatarDrawable.drawBitmap(...) is also included
which produces no functional change.

Change-Id: Ic67690cde56de6ca691ac8647ef02865b766ca62
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/AccountAvatarDrawable.java
a71d756a0e80f63b8b4ebd91451c3a79929e1a4e 28-Mar-2014 Scott Kennedy <skennedy@google.com> Rename com.android.bitmap to com.android.oldbitmap

This is causing some conflicts, and we want to replace this with the
new library in the near future.

Change-Id: Ie607e20a96861a6282e27410fea859f0ee1737cd
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/AccountAvatarDrawable.java
c7849b23a73d699b5e7f199f0a3afce5b9dee7a6 14-Mar-2014 Martin Hibdon <mhibdon@google.com> Change the layout of the account selector

b/12099292

Change-Id: Ie14ab2a534bacd915421a7083c9c3e3cc6b01a4b
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/AccountAvatarDrawable.java