summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2015-01-22 16:42:51 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-01-22 16:42:52 +0000
commit6ad502310c2ada18805b678f2e8b3f3ec5b58d35 (patch)
treefa84f728924eaa244f19bc885fe69287e2fb9b38 /InCallUI
parent15110c789df7c1095b9586dff2d04806b10cfae3 (diff)
parent7ba84ee61ef5d4284808f77711c7843b4b94a6b8 (diff)
Merge "Ensure sim color is shown on multi-sim devices when only one sim installed." into lmp-mr1-dev
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();
}