summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2015-01-20 15:46:05 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-01-20 15:46:05 +0000
commitc1857a261eb8e0bea7343358adaaac5bf986599d (patch)
treef54c1a130d41f6fc2a61b7b8fcca1b42549afcbf
parentc1d4d531f6db205c2f5ad023cb7067bb7e652bb5 (diff)
parentb1a723bf6e5c77b216090054bb8bf35d006c6244 (diff)
Merge "Ensure sim color is shown on multi-sim devices when only one sim installed."
-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();
}