summaryrefslogtreecommitdiff
path: root/InCallUI/src/com/android/incallui/CallCardPresenter.java
diff options
context:
space:
mode:
authorIhab Awad <ihab@google.com>2015-05-13 14:34:12 -0700
committerIhab Awad <ihab@google.com>2015-05-13 16:16:50 -0700
commit18aaec1d250a5c5239ec5f06363f6fbb2519c55e (patch)
tree6f2303161c6f9ca00b2e4fc0ab803859702bb534 /InCallUI/src/com/android/incallui/CallCardPresenter.java
parent7148459b206294570f79886c8e304f596f2171d9 (diff)
Refactor StatusHints (3/3)
Refactor StatusHints to use the new Icon class. Bug: 21040387 Change-Id: If5f92bfc83ddad37370832e457be65ab2440a1cf
Diffstat (limited to 'InCallUI/src/com/android/incallui/CallCardPresenter.java')
-rw-r--r--InCallUI/src/com/android/incallui/CallCardPresenter.java4
1 files changed, 2 insertions, 2 deletions
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<CallCardPresenter.CallCardUi>
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;
}