summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2021-09-03 14:05:37 -0700
committerTyler Gunn <tgunn@google.com>2021-09-03 14:05:37 -0700
commit84421d74dbb64a305026868551ac8f67984da2da (patch)
tree322faed8f98f06babfcfbab4211430e2ad0ccf9c
parent4e6598eef7ae563e05ea2329e970de804ef4d3cc (diff)
downloadbase-84421d74dbb64a305026868551ac8f67984da2da.tar.gz
Update API docs for InCallService.
Clarify that InCallService implementations should never indicate that they are non-exported. Test: Docs only fix Bug: 198003282 Change-Id: I85f925775b12c994a028e14d7644c744a252ec33
-rw-r--r--telecomm/java/android/telecom/InCallService.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/telecomm/java/android/telecom/InCallService.java b/telecomm/java/android/telecom/InCallService.java
index 5e3d26a5179d..705b4918726e 100644
--- a/telecomm/java/android/telecom/InCallService.java
+++ b/telecomm/java/android/telecom/InCallService.java
@@ -81,7 +81,8 @@ import java.util.List;
* <pre>
* {@code
* <service android:name="your.package.YourInCallServiceImplementation"
- * android:permission="android.permission.BIND_INCALL_SERVICE">
+ * android:permission="android.permission.BIND_INCALL_SERVICE"
+ * android:exported="true">
* <meta-data android:name="android.telecom.IN_CALL_SERVICE_UI" android:value="true" />
* <meta-data android:name="android.telecom.IN_CALL_SERVICE_RINGING"
* android:value="true" />
@@ -91,6 +92,10 @@ import java.util.List;
* </service>
* }
* </pre>
+ *
+ * <em>Note: You should NOT mark your {@link InCallService} with the attribute
+ * {@code android:exported="false"}; doing so can result in a failure to bind to your implementation
+ * during calls.</em>
* <p>
* In addition to implementing the {@link InCallService} API, you must also declare an activity in
* your manifest which handles the {@link Intent#ACTION_DIAL} intent. The example below illustrates