summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2019-05-14 18:08:06 (GMT)
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-06-11 21:04:07 (GMT)
commitd275736da9f3081da8bdd419c24e0437bdcf160e (patch)
tree2367683a9d9c3c2048b522e662bc68207f6d86bb
parent26117814937a04f70e1185cf6247d54c6cf2e3fd (diff)
downloadframeworks_base-d275736da9f3081da8bdd419c24e0437bdcf160e.zip
frameworks_base-d275736da9f3081da8bdd419c24e0437bdcf160e.tar.gz
frameworks_base-d275736da9f3081da8bdd419c24e0437bdcf160e.tar.bz2
Update API docs for TelecomManager#endCall.
Make it clear that ending an emergency call is not possible with this method. Test: Compile; this is a docs change. Bug: 132438333 Change-Id: I736b90e31723ee2055cedf16142c4d0f494bf49b (cherry picked from commit 3acf511895d8d19d5f9189d0159ae1d677a89a42)
-rw-r--r--telecomm/java/android/telecom/TelecomManager.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java
index 573f7db..18c170a 100644
--- a/telecomm/java/android/telecom/TelecomManager.java
+++ b/telecomm/java/android/telecom/TelecomManager.java
@@ -1317,6 +1317,9 @@ public class TelecomManager {
* foreground call is ended.
* <p>
* Requires permission {@link android.Manifest.permission#ANSWER_PHONE_CALLS}.
+ * <p>
+ * Note: this method CANNOT be used to end ongoing emergency calls and will return {@code false}
+ * if an attempt is made to end an emergency call.
*
* @return {@code true} if there is a call which will be rejected or terminated, {@code false}
* otherwise.