summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2015-01-22 19:59:22 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-01-22 19:59:22 +0000
commit425e86338cee8627c36aacee9f139011a42192b4 (patch)
tree4d2a4850c2de030bf4d7e9542c14cedab6d2d65c
parenta58d28489304b289cbc01a1242faa6415d224336 (diff)
parent06d2d8f0478ab16342622dcad07ae9436a2058c6 (diff)
am 72d03649: am a1c9ef02: Merge "Ensure sim color is shown on multi-sim devices when only one sim installed." into lmp-mr1-dev
* commit '72d036495812e503c56cbfbea8d722c21a74288e': 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();
}