Add CallModel object to the API and onCallUpdate.
Change-Id: Ie892fbc1f5eebc33328a5cb506c8fe9b24d310be
diff --git a/src/com/android/phone/CallHandlerServiceProxy.java b/src/com/android/phone/CallHandlerServiceProxy.java
index f5247f5..7415f92 100644
--- a/src/com/android/phone/CallHandlerServiceProxy.java
+++ b/src/com/android/phone/CallHandlerServiceProxy.java
@@ -28,6 +28,7 @@
import android.os.SystemProperties;
import android.util.Log;
+import com.android.services.telephony.common.Call;
import com.android.services.telephony.common.ICallHandlerService;
import com.android.services.telephony.common.ICallCommandService;
@@ -61,7 +62,7 @@
public void onNewCall(int callId) {
if (mCallHandlerService != null) {
try {
- mCallHandlerService.onIncomingCall(callId);
+ mCallHandlerService.onIncomingCall(new Call(callId));
} catch (RemoteException e) {
Log.e(TAG, "Remote exception handling onIncomingCall", e);
}
@@ -74,7 +75,7 @@
public void onDisconnect(int callId) {
if (mCallHandlerService != null) {
try {
- mCallHandlerService.onDisconnect(callId);
+ mCallHandlerService.onDisconnect(new Call(callId));
} catch (RemoteException e) {
Log.e(TAG, "Remote exception handling onDisconnect ", e);
}