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
This commit is contained in:
1
2023-03-09 22:07:56 +00:00
parent 339608909e
commit 40d7098b6d

View File

@@ -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";