From 211bccf2a3ad6c523930c1f159929678b9abc946 Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Mon, 5 Jan 2015 16:34:47 -0800 Subject: Ensure sim color is shown on multi-sim devices when only one sim installed. - Removed telecomManager check hasMultipleCallCapableAccounts() which would only return 1 when a single sim is installed in a multisim phone. - For single-sim devices, the Sim color is 0 (ie not selected) for the Sim PhoneAccount, so the default behavior is to not show a sim color. Bug: 18696518 Change-Id: I3968e181a41244092d2058fcf3dc8d627d12b412 --- src/com/android/incallui/InCallPresenter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/android/incallui/InCallPresenter.java b/src/com/android/incallui/InCallPresenter.java index dc41d416..ce6d439d 100644 --- a/src/com/android/incallui/InCallPresenter.java +++ b/src/com/android/incallui/InCallPresenter.java @@ -1367,8 +1367,10 @@ public class InCallPresenter implements CallList.Listener, InCallPhoneListener { if (phoneAccountHandle != null) { final TelecomManager tm = getTelecomManager(); - if (tm != null && tm.hasMultipleCallCapableAccounts()) { + if (tm != null) { final PhoneAccount account = tm.getPhoneAccount(phoneAccountHandle); + // For single-sim devices, there will be no selected highlight color, so the phone + // account will default to NO_HIGHLIGHT_COLOR. if (account != null) { highlightColor = account.getHighlightColor(); } -- cgit v1.2.3