diff options
author | sail <sail@google.com> | 2017-07-05 18:01:29 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-07-10 10:46:27 -0700 |
commit | 061b6eb8dac57aa9d28dfdd1f8853879a2274b17 (patch) | |
tree | 7a12db7b53684f7fa64c583da1cae91ca0cfa2c3 /java/com/android/contacts/common/compat | |
parent | 3128dea03a0e3981511dfed6f3ef555f0b574725 (diff) |
Update REASON_IMS_ACCESS_BLOCKED definition to match framework change.
This is changed in ag/2484808 to be defined by a constant telecom string. It
will be available to public in O MR. We have to hard code it until then.
(This is a take over of cl/161020406 from wangqi@)
Test: VideoCallNotAvailablePromptTest
PiperOrigin-RevId: 161030078
Change-Id: I0e1d8d98cb1f64b035d9063b28f8ba039c7378e4
Diffstat (limited to 'java/com/android/contacts/common/compat')
-rw-r--r-- | java/com/android/contacts/common/compat/telecom/TelecomManagerCompat.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/java/com/android/contacts/common/compat/telecom/TelecomManagerCompat.java b/java/com/android/contacts/common/compat/telecom/TelecomManagerCompat.java index e6f424788..172fb11e3 100644 --- a/java/com/android/contacts/common/compat/telecom/TelecomManagerCompat.java +++ b/java/com/android/contacts/common/compat/telecom/TelecomManagerCompat.java @@ -35,6 +35,11 @@ public class TelecomManagerCompat { public static final String EXTRA_HANDOVER_VIDEO_STATE = "android.telecom.extra.HANDOVER_VIDEO_STATE"; + // This is a hidden constant in android.telecom.DisconnectCause. Telecom sets this as a disconnect + // reason if it wants us to prompt the user that the video call is not available. + // TODO(wangqi): Reference it to constant in android.telecom.DisconnectCause. + public static final String REASON_IMS_ACCESS_BLOCKED = "REASON_IMS_ACCESS_BLOCKED"; + /** * Returns the current SIM call manager. Apps must be prepared for this method to return null, * indicating that there currently exists no registered SIM call manager. |