Adding CallMonitorService reference into PhoneGlobals.
This searches for and starts the service that is implemented by
InCallUI.
Change-Id: I604f122b1497ebf6d526dda6a6844392255a6916
diff --git a/src/com/android/phone/PhoneGlobals.java b/src/com/android/phone/PhoneGlobals.java
index 019c74a..49332d1 100644
--- a/src/com/android/phone/PhoneGlobals.java
+++ b/src/com/android/phone/PhoneGlobals.java
@@ -172,6 +172,7 @@
PhoneInterfaceManager phoneMgr;
CallManager mCM;
CallStateMonitor callStateMonitor;
+ CallMonitorServiceProxy callMonitorServiceProxy;
int mBluetoothHeadsetState = BluetoothProfile.STATE_DISCONNECTED;
int mBluetoothHeadsetAudioState = BluetoothHeadset.STATE_AUDIO_DISCONNECTED;
boolean mShowBluetoothIndication = false;
@@ -536,6 +537,9 @@
// Monitors call activity from the telephony layer
callStateMonitor = new CallStateMonitor(mCM);
+ // Sends call state to the UI
+ callMonitorServiceProxy = new CallMonitorServiceProxy(this, callStateMonitor);
+
// Create the CallNotifer singleton, which handles
// asynchronous events from the telephony layer (like
// launching the incoming-call UI when an incoming call comes