Plumb through the post-dial DTMF wait/response
Connect the CallServices with the InCallService for post-dial DTMF
call flows (and the reverse path, for the wait dialog response).
Bug: 13734588
Change-Id: I5cc06268590c3c424ea6daf216cb205b9c470dac
diff --git a/src/com/android/telecomm/CallsManager.java b/src/com/android/telecomm/CallsManager.java
index 727e44d..5433467 100644
--- a/src/com/android/telecomm/CallsManager.java
+++ b/src/com/android/telecomm/CallsManager.java
@@ -171,6 +171,11 @@
}
}
+ @Override
+ public void onPostDialWait(Call call, String remaining) {
+ mInCallController.onPostDialWait(call, remaining);
+ }
+
ImmutableCollection<Call> getCalls() {
return ImmutableList.copyOf(mCalls);
}
@@ -322,15 +327,13 @@
}
/**
- * Instructs Telecomm to continue the current post-dial DTMF string, if any.
+ * Instructs Telecomm to continue (or not) the current post-dial DTMF string, if any.
*/
- void postDialContinue(Call call) {
+ void postDialContinue(Call call, boolean proceed) {
if (!mCalls.contains(call)) {
Log.i(this, "Request to continue post-dial string in a non-existent call %s", call);
} else {
- // TODO(ihab): Implement this from this level on downwards
- // call.postDialContinue();
- // Must play tones locally -- see DTMFTonePlayer.java in Telephony
+ call.postDialContinue(proceed);
}
}