From 18aaec1d250a5c5239ec5f06363f6fbb2519c55e Mon Sep 17 00:00:00 2001 From: Ihab Awad Date: Wed, 13 May 2015 14:34:12 -0700 Subject: Refactor StatusHints (3/3) Refactor StatusHints to use the new Icon class. Bug: 21040387 Change-Id: If5f92bfc83ddad37370832e457be65ab2440a1cf --- InCallUI/src/com/android/incallui/CallCardPresenter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'InCallUI/src/com/android/incallui/CallCardPresenter.java') diff --git a/InCallUI/src/com/android/incallui/CallCardPresenter.java b/InCallUI/src/com/android/incallui/CallCardPresenter.java index e5adbf8e7..5cbffa628 100644 --- a/InCallUI/src/com/android/incallui/CallCardPresenter.java +++ b/InCallUI/src/com/android/incallui/CallCardPresenter.java @@ -698,8 +698,8 @@ public class CallCardPresenter extends Presenter private Drawable getCallStateIcon() { // Return connection icon if one exists. StatusHints statusHints = mPrimary.getTelecommCall().getDetails().getStatusHints(); - if (statusHints != null && statusHints.getIconResId() != 0) { - Drawable icon = statusHints.getIcon(mContext); + if (statusHints != null && statusHints.getIcon() != null) { + Drawable icon = statusHints.getIcon().loadDrawable(mContext); if (icon != null) { return icon; } -- cgit v1.2.3