OSDN Git Service

Update API docs for TelecomManager#endCall.
authorTyler Gunn <tgunn@google.com>
Tue, 14 May 2019 18:08:06 +0000 (11:08 -0700)
committerTyler Gunn <tgunn@google.com>
Tue, 14 May 2019 20:00:55 +0000 (20:00 +0000)
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

telecomm/java/android/telecom/TelecomManager.java

index 573f7db..18c170a 100644 (file)
@@ -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.