From 82c090ba314ca794150a191d84bf537e28e1265e Mon Sep 17 00:00:00 2001 From: Ihab Awad Date: Mon, 3 Nov 2014 09:49:22 -0800 Subject: Update PhoneAccount icon API (4/6) Bug: 18291787 Change-Id: I38e63df22c6c1c77c6583493ff7169f8f0ec1f62 --- InCallUI/src/com/android/incallui/InCallPresenter.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'InCallUI') 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); } -- cgit v1.2.3