From 4ac283889960c9d5f3a5ad4855083a3448996ac7 Mon Sep 17 00:00:00 2001 From: Sudheer Shanka Date: Sun, 20 Feb 2022 05:09:03 +0000 Subject: [PATCH] Update javadoc for recordResponseEventWhileInBackground(). Update it to make it clear that it is valid for only explicit intents. Bug: 206518114 Test: treehugger Change-Id: I94ee73bb8050f4d4d6171b7d1c7f8053b43310f1 --- core/java/android/app/BroadcastOptions.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/java/android/app/BroadcastOptions.java b/core/java/android/app/BroadcastOptions.java index e31a566904084..8b3c9fa73798d 100644 --- a/core/java/android/app/BroadcastOptions.java +++ b/core/java/android/app/BroadcastOptions.java @@ -523,6 +523,8 @@ public class BroadcastOptions extends ComponentOptions { * Sets whether events (such as posting a notification) originating from an app after it * receives the broadcast while in background should be recorded as responses to the broadcast. * + *

Note that this will only be considered when sending explicit broadcast intents. + * * @param id ID to be used for the response events corresponding to this broadcast. If the * value is {@code 0} (default), then response events will not be recorded. Otherwise, * they will be recorded with the ID provided.