summaryrefslogtreecommitdiff
path: root/InCallUI/src
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2014-11-12 23:49:52 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-12 23:49:52 +0000
commit7f8f9dd93de4ec6026755568e793a9c4e3ed6548 (patch)
treed7aefaebe5b0431497b733e894c10c1c56b483b1 /InCallUI/src
parent42f19898136bdf07fc38586d70a6f14711997864 (diff)
parent7f77489fe800158b549371a0c34abad4cf48fd47 (diff)
am 529a4b36: am a312c8e4: Use the highlight color instead of the tint color
* commit '529a4b3692353a47b606489b27f289a756d07543': Use the highlight color instead of the tint color
Diffstat (limited to 'InCallUI/src')
-rw-r--r--InCallUI/src/com/android/incallui/InCallPresenter.java6
-rw-r--r--InCallUI/src/com/android/incallui/InCallUIMaterialColorMapUtils.java2
2 files changed, 4 insertions, 4 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallPresenter.java b/InCallUI/src/com/android/incallui/InCallPresenter.java
index 8b096d044..4432018f8 100644
--- a/InCallUI/src/com/android/incallui/InCallPresenter.java
+++ b/InCallUI/src/com/android/incallui/InCallPresenter.java
@@ -1168,18 +1168,18 @@ public class InCallPresenter implements CallList.Listener, InCallPhoneListener {
Call call = CallList.getInstance().getFirstCall();
TelecomManager tm = getTelecomManager();
- int iconTint = PhoneAccount.NO_COLOR;
+ int highlightColor = PhoneAccount.NO_COLOR;
if (call != null && tm != null && tm.hasMultipleCallCapableAccounts()) {
PhoneAccount account = tm.getPhoneAccount(call.getAccountHandle());
if (account != null) {
- iconTint = account.getIconTint();
+ highlightColor = account.getHighlightColor();
}
}
// This method will set the background to default if the color is PhoneAccount.NO_COLOR.
mThemeColors = new InCallUIMaterialColorMapUtils(mContext.getResources()).
- calculatePrimaryAndSecondaryColor(iconTint);
+ calculatePrimaryAndSecondaryColor(highlightColor);
mInCallActivity.getWindow().setStatusBarColor(mThemeColors.mSecondaryColor);
}
diff --git a/InCallUI/src/com/android/incallui/InCallUIMaterialColorMapUtils.java b/InCallUI/src/com/android/incallui/InCallUIMaterialColorMapUtils.java
index efab45f21..ca4f9b7ec 100644
--- a/InCallUI/src/com/android/incallui/InCallUIMaterialColorMapUtils.java
+++ b/InCallUI/src/com/android/incallui/InCallUIMaterialColorMapUtils.java
@@ -17,7 +17,7 @@ public class InCallUIMaterialColorMapUtils extends MaterialColorMapUtils {
sPrimaryColors = resources.obtainTypedArray(
com.android.incallui.R.array.background_colors);
sSecondaryColors = resources.obtainTypedArray(
- com.android.contacts.common.R.array.background_colors_dark);
+ com.android.incallui.R.array.background_colors_dark);
mResources = resources;
}