From 40d7098b6d060c3c20ba6c719552b60bacb7b905 Mon Sep 17 00:00:00 2001 From: 1 Date: Thu, 9 Mar 2023 22:07:56 +0000 Subject: [PATCH] Update EXTRA_CHOOSER_MODIFY_SHARE_ACTION to use ChooserAction This allows the app to control the string for this bit of UI (instead of relying on the system to have a description that applies to all apps), based upon 1p feedback. See CTS test added in this topic. Bug: 272008339 Test: atest CtsSharesheetDeviceTest Change-Id: Ibe20d998cedd6e56dd14a45cae2b1f17cc2cf65d --- core/java/android/content/Intent.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index 85daf15865d1e..667ec7ecfc5f2 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -5920,9 +5920,8 @@ public class Intent implements Parcelable, Cloneable { /** * Optional argument to be used with {@link #ACTION_CHOOSER}. - * A {@link android.app.PendingIntent} to be sent when the user wants to modify the content that - * they're sharing. This can be used to allow the user to return to the source app to, for - * example, select different media. + * A {@link ChooserAction} to allow the user to modify what is being shared in some way. This + * may be integrated into the content preview on sharesheets that have a preview UI. */ public static final String EXTRA_CHOOSER_MODIFY_SHARE_ACTION = "android.intent.extra.CHOOSER_MODIFY_SHARE_ACTION";