diff options
author | Brandon Maxwell <maxwelb@google.com> | 2016-01-29 10:39:46 -0800 |
---|---|---|
committer | Brandon Maxwell <maxwelb@google.com> | 2016-01-29 15:07:02 -0800 |
commit | b9904dfe67fdc7b3f0b826463c8c5ca35b3951bc (patch) | |
tree | 072cea8c9c80e40f592d2426e6cfc536be73f221 | |
parent | d1faa572a1a430f429ea80b931a35fdf46124032 (diff) |
Saving the contactSpecificRingtone after remote lookup
- Remote contact lookup was overwriting the cached contact specific
ringtone. This resulted in a longer wait time for the ringtone to
play since it would require the contact lookup to complete again.
- This CL prevents the cached ringtone from being overwritten.
Change-Id: I0a1cb30acd3aaf540533429c01427b185a7acf66
-rw-r--r-- | InCallUI/src/com/android/incallui/ContactInfoCache.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/ContactInfoCache.java b/InCallUI/src/com/android/incallui/ContactInfoCache.java index 40203daab..ab4150ba4 100644 --- a/InCallUI/src/com/android/incallui/ContactInfoCache.java +++ b/InCallUI/src/com/android/incallui/ContactInfoCache.java @@ -297,6 +297,8 @@ public class ContactInfoCache implements ContactsAsyncHelper.OnImageLoadComplete // field is no longer used; it is persisted here in case // the UI is ever changed to use it. entry.location = oldEntry.location; + // Contact specific ringtone is obtained from local lookup. + entry.contactRingtoneUri = oldEntry.contactRingtoneUri; } // If no image and it's a business, switch to using the default business avatar. |