From 96d17e40f8437ee7143c0c9003cce7735a03bb39 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Tue, 18 Nov 2014 19:39:51 -0800 Subject: Improve setting of contact photos in InCallUI Add drawable caching in CallCardFragment so that we don't set the same drawable multiple times. Save and reuse the default contact photo and default conference photo to avoid possibly decoding them multiple times. Bug: 18373617 Change-Id: I54b925e6fc6f136f3d3ef27609fcdaf4c39a73dd --- .../src/com/android/incallui/CallCardFragment.java | 17 +++++++++++---- .../src/com/android/incallui/ContactInfoCache.java | 25 ++++++++++++++++++---- 2 files changed, 34 insertions(+), 8 deletions(-) (limited to 'InCallUI/src/com/android') diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java index 8aa8d2349..77ec17344 100644 --- a/InCallUI/src/com/android/incallui/CallCardFragment.java +++ b/InCallUI/src/com/android/incallui/CallCardFragment.java @@ -78,6 +78,7 @@ public class CallCardFragment extends BaseFragment