From 5b592ce22da61660c21752122d8172f7dbc0c796 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Tue, 14 Apr 2015 14:25:20 -0700 Subject: Follow TelecomManager API changes Bug: 20160799 Change-Id: I47d4f5e511b59ecf5357f62a36144763c90d1246 --- InCallUI/src/com/android/incallui/CallCardPresenter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'InCallUI') diff --git a/InCallUI/src/com/android/incallui/CallCardPresenter.java b/InCallUI/src/com/android/incallui/CallCardPresenter.java index bd3694339..bddeea351 100644 --- a/InCallUI/src/com/android/incallui/CallCardPresenter.java +++ b/InCallUI/src/com/android/incallui/CallCardPresenter.java @@ -589,7 +589,7 @@ public class CallCardPresenter extends Presenter PhoneAccount account = getAccountForCall(call); TelecomManager mgr = InCallPresenter.getInstance().getTelecomManager(); if (account != null && !TextUtils.isEmpty(account.getLabel()) - && mgr.hasMultipleCallCapableAccounts()) { + && mgr.getCallCapablePhoneAccounts().size() > 1) { return account.getLabel().toString(); } return null; -- cgit v1.2.3