Fixes null pointer bug for conference call.
- Adds that a conference call can be the holding call in the background.
Bug: 10677856
Change-Id: I23176ed04ce3c3f0032a0e3c8d9b4c0e3285c5e2
diff --git a/InCallUI/src/com/android/incallui/ConferenceManagerPresenter.java b/InCallUI/src/com/android/incallui/ConferenceManagerPresenter.java
index 6b6f7d8..ccda4a5 100644
--- a/InCallUI/src/com/android/incallui/ConferenceManagerPresenter.java
+++ b/InCallUI/src/com/android/incallui/ConferenceManagerPresenter.java
@@ -60,7 +60,7 @@
private void update(CallList callList) {
mCallerIds = null;
- mCallerIds = callList.getActiveCall().getChildCallIds().toArray(new Integer[0]);
+ mCallerIds = callList.getActiveOrBackgroundCall().getChildCallIds().toArray(new Integer[0]);
mNumCallersInConference = mCallerIds.length;
Log.v(this, "Number of calls is " + String.valueOf(mNumCallersInConference));