diff options
author | Ihab Awad <ihab@google.com> | 2014-11-11 23:02:17 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-11 23:02:17 +0000 |
commit | a1e5c7b57f22477aa84968f6fc9ea20f3b282e09 (patch) | |
tree | 2e3ce1237ff9f53d6eddb8c130d752de47e702e9 /InCallUI | |
parent | be6ea75e6b873b15d14d6df1d1409cf5e08399f0 (diff) | |
parent | 0f87a7196e37dda300b23bf8a02b3a238818d562 (diff) |
am 8cadd57e: Merge "Update PhoneAccount icon API (4/6)" into lmp-mr1-dev
* commit '8cadd57e0347de316931aa2944bb27b1e583655b':
Update PhoneAccount icon API (4/6)
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallPresenter.java | 8 |
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); } |