summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-09-21 23:13:17 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-09-21 23:13:17 +0000
commitf901672db1ed7c16ffc3fc54409f0604b148b1d0 (patch)
tree7928d7cf217e32b9965e5eebfb38e736b18f8178
parent81b291c74e58357843d2542e1f1229690876584f (diff)
parent44b1c13d45c1b74c21a3bcd4121708b2a89d39ba (diff)
am 44b1c13d: Fix a couple of Telecom caching bugs
* commit '44b1c13d45c1b74c21a3bcd4121708b2a89d39ba': Fix a couple of Telecom caching bugs
-rw-r--r--src/com/android/dialer/calllog/PhoneCallDetailsHelper.java2
-rw-r--r--src/com/android/dialer/calllog/TelecomCallLogCache.java1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/dialer/calllog/PhoneCallDetailsHelper.java b/src/com/android/dialer/calllog/PhoneCallDetailsHelper.java
index df5fe0606..54324cdde 100644
--- a/src/com/android/dialer/calllog/PhoneCallDetailsHelper.java
+++ b/src/com/android/dialer/calllog/PhoneCallDetailsHelper.java
@@ -112,7 +112,7 @@ public class PhoneCallDetailsHelper {
if (accountLabel != null) {
views.callAccountLabel.setVisibility(View.VISIBLE);
views.callAccountLabel.setText(accountLabel);
- int color = PhoneAccountUtils.getAccountColor(mContext, details.accountHandle);
+ int color = mTelecomCallLogCache.getAccountColor(details.accountHandle);
if (color == PhoneAccount.NO_HIGHLIGHT_COLOR) {
int defaultColor = R.color.dialtacts_secondary_text_color;
views.callAccountLabel.setTextColor(mContext.getResources().getColor(defaultColor));
diff --git a/src/com/android/dialer/calllog/TelecomCallLogCache.java b/src/com/android/dialer/calllog/TelecomCallLogCache.java
index 7071669e5..6363b91ec 100644
--- a/src/com/android/dialer/calllog/TelecomCallLogCache.java
+++ b/src/com/android/dialer/calllog/TelecomCallLogCache.java
@@ -120,6 +120,7 @@ public class TelecomCallLogCache {
public boolean isVideoEnabled() {
if (!mHasCheckedForVideoEnabled) {
mIsVideoEnabled = CallUtil.isVideoEnabled(mContext);
+ mHasCheckedForVideoEnabled = true;
}
return mIsVideoEnabled;
}