diff options
author | Kamaljeet Maini <kmaini@cyngn.com> | 2016-04-22 14:19:56 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-05-06 11:45:24 -0700 |
commit | 28393c9b61f6f40c1ef88388a253d2178c8b0c2a (patch) | |
tree | 8c26e386425923d7be706e89c0175a647f9113ab /telecomm/java/android/telecom/Call.java | |
parent | 35c5005e78a70610713bb16e024a0039f0c614c9 (diff) | |
download | frameworks_base-28393c9b61f6f40c1ef88388a253d2178c8b0c2a.zip frameworks_base-28393c9b61f6f40c1ef88388a253d2178c8b0c2a.tar.gz frameworks_base-28393c9b61f6f40c1ef88388a253d2178c8b0c2a.tar.bz2 |
Add new options for call waiting response in InCallUI
When an incoming call is received while there is already an active call,
the user will be given four choices for the response:
1) Left button: hold the current call and answer incoming call
2) Bottom button: end the current call and answer the incoming call
3) Right button: decline the incoming call
4) Top button: Send a text message to the incoming caller if texting
is enabled
The framework changes include new hidden API for sending additional
information to Telecomm service, few constants, and a bug fix.
Change-Id: I642b330d856613fafc0526eb79dd97fedba4ce6a
Diffstat (limited to 'telecomm/java/android/telecom/Call.java')
-rw-r--r-- | telecomm/java/android/telecom/Call.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/Call.java b/telecomm/java/android/telecom/Call.java index 8af52f2..438e7bb 100644 --- a/telecomm/java/android/telecom/Call.java +++ b/telecomm/java/android/telecom/Call.java @@ -832,6 +832,16 @@ public final class Call { } /** + * Instructs this {@link #STATE_RINGING} {@code Call} to answer. + * @param videoState The video state in which to answer the call. + * @param callWaitingResponseType Type of response for call waiting + * @hide + */ + public void answer(int videoState, int callWaitingResponseType) { + mInCallAdapter.answerCall(mTelecomCallId, videoState, callWaitingResponseType); + } + + /** * Instructs this {@link #STATE_RINGING} {@code Call} to reject. * * @param rejectWithMessage Whether to reject with a text message. @@ -1172,6 +1182,7 @@ public final class Call { && !parcelableCall.getCannedSmsResponses().isEmpty()) { mCannedTextResponses = Collections.unmodifiableList(parcelableCall.getCannedSmsResponses()); + cannedTextResponsesChanged = true; } boolean videoCallChanged = parcelableCall.isVideoCallProviderChanged() && |