Fix incoming callback and binding issues.
- Created queues to handle cases where callbacks were getting dropped while
the service was connecting.
- Fixed DeadObjectExceptions when the in-call ui was being re-installed.
- Change to a single connection object to fix connection leak where every
re-bind caused connection to double.
- Split caller information from Call into CallIdentification object.
Bug: 10468815
Bug: 10457750
Change-Id: Icaef130db2f6893df3175eed07d0d483a3c4c455
diff --git a/src/com/android/phone/CallModeler.java b/src/com/android/phone/CallModeler.java
index 94584a2..6b7a137 100644
--- a/src/com/android/phone/CallModeler.java
+++ b/src/com/android/phone/CallModeler.java
@@ -203,8 +203,7 @@
for (int i = 0; i < mListeners.size(); ++i) {
if (call != null) {
- mListeners.get(i).onIncoming(call,
- mRejectWithTextMessageManager.loadCannedResponses());
+ mListeners.get(i).onIncoming(call);
}
}
}
@@ -246,7 +245,7 @@
doUpdate(false, updatedCalls);
for (int i = 0; i < mListeners.size(); ++i) {
- mListeners.get(i).onUpdate(updatedCalls, false);
+ mListeners.get(i).onUpdate(updatedCalls);
}
}
@@ -680,8 +679,8 @@
*/
public interface Listener {
void onDisconnect(Call call);
- void onIncoming(Call call, ArrayList<String> textReponses);
- void onUpdate(List<Call> calls, boolean fullUpdate);
+ void onIncoming(Call call);
+ void onUpdate(List<Call> calls);
}
/**