Use mapped IDs for calls
With this CL each client gets a unique ID to represent calls.
This has a couple of benefits:
- avoids one client from modifying another clients call
- allows for stricter validation of input
- allows a call to handed off to a different call service
(with a different call ID)
Bug: 13643568
Change-Id: I6e2039aead5723d01f9442a4e54f5e616711a3b3
diff --git a/src/com/android/telecomm/CallAudioManager.java b/src/com/android/telecomm/CallAudioManager.java
index bf41f70..d9ff8a5 100644
--- a/src/com/android/telecomm/CallAudioManager.java
+++ b/src/com/android/telecomm/CallAudioManager.java
@@ -304,7 +304,7 @@
private void updateAudioForForegroundCall() {
Call call = CallsManager.getInstance().getForegroundCall();
if (call != null && call.getCallService() != null) {
- call.getCallService().onAudioStateChanged(call.getId(), mAudioState);
+ call.getCallService().onAudioStateChanged(call, mAudioState);
}
}
}