From 06ae75bf5159979f95aaa04dc1e40e34c856ab84 Mon Sep 17 00:00:00 2001 From: Hall Liu Date: Mon, 11 Mar 2019 19:11:35 -0700 Subject: [PATCH] Fix issues associated with hold failure Add new connection event to indicate hold failure Fixes: 128275255 Test: manual Change-Id: I2678cda12d7703eba37d3feca3a8d98b21c050b1 --- telecomm/java/android/telecom/Connection.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java index bd0d4ae278009..5f0fa4963322c 100644 --- a/telecomm/java/android/telecom/Connection.java +++ b/telecomm/java/android/telecom/Connection.java @@ -554,6 +554,15 @@ public abstract class Connection extends Conferenceable { */ public static final String EVENT_CALL_MERGE_FAILED = "android.telecom.event.CALL_MERGE_FAILED"; + /** + * Connection event used to inform Telecom when a hold operation on a call has failed. + * Not intended for use by the UI at this time. + * Sent via {@link #sendConnectionEvent(String, Bundle)}. The {@link Bundle} parameter is + * expected to be null when this connection event is used. + * @hide + */ + public static final String EVENT_CALL_HOLD_FAILED = "android.telecom.event.CALL_HOLD_FAILED"; + /** * Connection event used to inform {@link InCallService}s when the process of merging a * Connection into a conference has begun.