Merge "Fix potential out of order callbacks." into klp-dev
diff --git a/src/com/android/phone/CallHandlerServiceProxy.java b/src/com/android/phone/CallHandlerServiceProxy.java
index d13aa75..b1a3345 100644
--- a/src/com/android/phone/CallHandlerServiceProxy.java
+++ b/src/com/android/phone/CallHandlerServiceProxy.java
@@ -85,7 +85,9 @@
mAudioRouter.addAudioModeListener(this);
mCallModeler.addListener(this);
- setupServiceConnection();
+ if (PhoneGlobals.sVoiceCapable) {
+ setupServiceConnection();
+ }
}
@Override
@@ -251,8 +253,6 @@
private void setupServiceConnection() {
synchronized (mServiceAndQueueLock) {
if (mCallHandlerServiceGuarded == null) {
-
-
final Intent serviceIntent = new Intent(ICallHandlerService.class.getName());
final ComponentName component = new ComponentName(mContext.getResources().getString(
R.string.incall_ui_default_package), mContext.getResources().getString(