summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2021-11-11 19:39:33 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-11-11 19:39:33 +0000
commitf33b0154caaa18e2355a4cf642c517e4a0e0e1f3 (patch)
tree605906deac2ae341f84a261fd3e12dac4691d005 /core/java/android
parent43b384ef0f7fc2f128d06a912a18ff722ce6fae3 (diff)
parent043c9dee2d5e9f0c63bcf2a012b5f93bc32cd307 (diff)
Merge "API docs clarification for placing calls." am: 57954552ad am: 043c9dee2d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1853624 Change-Id: I979f732e3fcecb1bba3b2384a0f46906751705af
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/content/Intent.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java
index 882a624df500..1552dbd00c92 100644
--- a/core/java/android/content/Intent.java
+++ b/core/java/android/content/Intent.java
@@ -1147,6 +1147,10 @@ public class Intent implements Parcelable, Cloneable {
* numbers. Applications can <strong>dial</strong> emergency numbers using
* {@link #ACTION_DIAL}, however.
*
+ * <p>Note: An app filling the {@link android.app.role.RoleManager#ROLE_DIALER} role should use
+ * {@link android.telecom.TelecomManager#placeCall(Uri, Bundle)} to place calls rather than
+ * relying on this intent.
+ *
* <p>Note: if you app targets {@link android.os.Build.VERSION_CODES#M M}
* and above and declares as using the {@link android.Manifest.permission#CALL_PHONE}
* permission which is not granted, then attempting to use this action will