summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2015-01-05 16:34:47 -0800
committerTyler Gunn <tgunn@google.com>2015-01-05 16:34:47 -0800
commit7ba84ee61ef5d4284808f77711c7843b4b94a6b8 (patch)
tree9e9b4894536c8250b15fc2967eb7ce04768c3595 /InCallUI
parent6a918d7c3e1ac02fbdb200fbc6c9e802a438f4a7 (diff)
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
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/src/com/android/incallui/InCallPresenter.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallPresenter.java b/InCallUI/src/com/android/incallui/InCallPresenter.java
index dc41d416e..ce6d439d1 100644
--- a/InCallUI/src/com/android/incallui/InCallPresenter.java
+++ b/InCallUI/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();
}