From a3d3acae57b46ae498e55153860d63055b8169ba Mon Sep 17 00:00:00 2001 From: Sailesh Nepal Date: Tue, 1 Apr 2014 23:36:41 -0700 Subject: Add disconnect cause and message extras These extras will be sent out as a part of the ACTION_PHONE_STATE_CHANGED broadcast. Change-Id: I23fe43e7f3604471185ffb30be9ac553438b78f3 --- telecomm/java/android/telecomm/TelecommConstants.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'telecomm') diff --git a/telecomm/java/android/telecomm/TelecommConstants.java b/telecomm/java/android/telecomm/TelecommConstants.java index c2cccf1..8300c92 100644 --- a/telecomm/java/android/telecomm/TelecommConstants.java +++ b/telecomm/java/android/telecomm/TelecommConstants.java @@ -70,10 +70,18 @@ public final class TelecommConstants { "android.intent.extra.INCOMING_CALL_EXTRAS"; /** - * Optional extra for {@link TelephonyManager#ACTION_PHONE_STATE_CHANGED} containing the unique - * ID of the call. + * Optional extra for {@link TelephonyManager#ACTION_PHONE_STATE_CHANGED} containing the + * disconnect code. */ - public static final String EXTRA_CALL_ID = "android.telecomm.extra.CALL_ID"; + public static final String EXTRA_CALL_DISCONNECT_CAUSE = + "android.telecomm.extra.CALL_DISCONNECT_CAUSE"; + + /** + * Optional extra for {@link TelephonyManager#ACTION_PHONE_STATE_CHANGED} containing the + * disconnect message. + */ + public static final String EXTRA_CALL_DISCONNECT_MESSAGE = + "android.telecomm.extra.CALL_DISCONNECT_MESSAGE"; /** * The dual tone multi-frequency signaling character sent to indicate the dialing system should -- cgit v1.1