summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorIhab Awad <ihab@google.com>2014-11-12 03:42:51 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-12 03:42:51 +0000
commit4a1d50c04c45488ffa6fc0c4fe794f706c8a5b84 (patch)
tree25ad6d26e9f31fbef1cd923e062adfdfd21f6e91 /InCallUI
parent63356ff12dd7b0fa751606c680ead165ebac3be0 (diff)
parent2ca1ef18896947d2357aaa69bb52826f9ce7b526 (diff)
am 32f1ec13: am 1d8aa9cf: am 8cadd57e: Merge "Update PhoneAccount icon API (4/6)" into lmp-mr1-dev
* commit '32f1ec13884dedaf03943206a27f9bb4a5c7f43d': Update PhoneAccount icon API (4/6)
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/src/com/android/incallui/InCallPresenter.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallPresenter.java b/InCallUI/src/com/android/incallui/InCallPresenter.java
index 202730458..8b096d044 100644
--- a/InCallUI/src/com/android/incallui/InCallPresenter.java
+++ b/InCallUI/src/com/android/incallui/InCallPresenter.java
@@ -16,8 +16,6 @@
package com.android.incallui;
-import android.Manifest;
-import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
@@ -1170,18 +1168,18 @@ public class InCallPresenter implements CallList.Listener, InCallPhoneListener {
Call call = CallList.getInstance().getFirstCall();
TelecomManager tm = getTelecomManager();
- int color = PhoneAccount.NO_COLOR;
+ int iconTint = PhoneAccount.NO_COLOR;
if (call != null && tm != null && tm.hasMultipleCallCapableAccounts()) {
PhoneAccount account = tm.getPhoneAccount(call.getAccountHandle());
if (account != null) {
- color = account.getColor();
+ iconTint = account.getIconTint();
}
}
// This method will set the background to default if the color is PhoneAccount.NO_COLOR.
mThemeColors = new InCallUIMaterialColorMapUtils(mContext.getResources()).
- calculatePrimaryAndSecondaryColor(color);
+ calculatePrimaryAndSecondaryColor(iconTint);
mInCallActivity.getWindow().setStatusBarColor(mThemeColors.mSecondaryColor);
}