Bluetooth indicator should depends on call state
Add CallModel listener to BluetoothManager so that it can alter the
bluetooth state when calls change.
Change-Id: Idf0b9a4b8b2247ac5ddf1fcc1d8359c85bb299da
(cherry picked from commit 9f8953efa3983a1cd3f8411636300deab6ad3789)
diff --git a/src/com/android/phone/CallCard.java b/src/com/android/phone/CallCard.java
index 912af73..fcef7f3 100644
--- a/src/com/android/phone/CallCard.java
+++ b/src/com/android/phone/CallCard.java
@@ -809,6 +809,7 @@
// Check a couple of other special cases (these are all CDMA-specific).
+ // TODO(klp): This code should go into the CallModeler logic instead of the UI.
if (phoneType == PhoneConstants.PHONE_TYPE_CDMA) {
if ((state == Call.State.ACTIVE)
&& mApplication.cdmaPhoneCallState.IsThreeWayCallOrigStateDialing()) {