From 479505d71969e26b0785d8e0e1b81108731cf827 Mon Sep 17 00:00:00 2001 From: Mark Wei Date: Thu, 21 Mar 2013 06:04:46 -0700 Subject: Attachments in Conversation List: Backend changes so that the appropriate attachments are passed to the UI. Implement PhotoManager so we can start showing images. Upon sync, we extract two image attachments from the first unread message, and add them to the conversations table. UI changes as well. Load BEST if that is available, else load SIMPLE. No vertical dividers in attachment previews. Attachment previews are above labels. Round badge appears for unread conversations when there are more images than shown. Only appears after the previews have loaded. Clicking on the attachment previews launches photoviewer. Attempt to load bigger images than necessary to prevent reloading during mark read/unread and rotate. Show animated loading icon while previews are loading. Previews load from top to bottom, from left to right. Big performance improvements: No longer decoding bitmap on UI thread. This kills most of the jank. Only load when we are not scrolling. This kills a lot of jank. Remaining jank will be delt with later: DividedImageCanvas.setDimensions() creates a huge empty bitmap on the UI thread, which causes a GC. ath will fix. Multiple images in one line now load whatever's ready first. Added tracing. Bitmap cache given more memory. Following ath's advice, decode Bitmap from InputStream rather than byte[]. Don't compress into BitmapHolder. Only use the bigger Bitmap cache. Bug: 7481049 Change-Id: Icf823f56abc9345e6d0b800a1e6d45444d8fa028 --- proguard.flags | 1 + 1 file changed, 1 insertion(+) (limited to 'proguard.flags') diff --git a/proguard.flags b/proguard.flags index 033b29e21..5d904420e 100644 --- a/proguard.flags +++ b/proguard.flags @@ -60,6 +60,7 @@ -keepclasseswithmembers class com.android.mail.browse.ConversationItemView { *** setAnimatedHeightFraction(...); + *** setAnimatedProgressFraction(...); } -keepclasseswithmembers class com.android.mail.ui.MailActivity { -- cgit v1.2.3