From 111ce36c24093a6f36ad5234e0fedc74df76d854 Mon Sep 17 00:00:00 2001
From: Andrey Epin
Date: Mon, 10 Jun 2024 09:55:38 -0700
Subject: Update Intent#EXTRA_CHOOSER_ADDITIONAL_CONTENT_URI java doc
Include description of the optional WIDTH and HEIGHT metadata columns.
Fix: 346347088
Test: N/A
Flag: android.service.chooser.chooser_payload_toggling
Change-Id: Ica26bbe4784c94fc2720c00c76964c0ccadfce2d
---
core/java/android/content/Intent.java | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java
index 02d62a2a402b..79ac3128523f 100644
--- a/core/java/android/content/Intent.java
+++ b/core/java/android/content/Intent.java
@@ -6110,11 +6110,17 @@ public class Intent implements Parcelable, Cloneable {
* {@link ContentProvider#query(Uri, String[], Bundle, CancellationSignal)}
* method will contains the original intent Chooser has been launched with under the
* {@link #EXTRA_INTENT} key as a context for the current sharing session. The returned
- * {@link android.database.Cursor} should contain
- * {@link android.service.chooser.AdditionalContentContract.Columns#URI} column for the item URI
- * and, optionally, {@link AdditionalContentContract.CursorExtraKeys#POSITION} extra that
+ * {@link android.database.Cursor} should contain:
+ *
+ * - {@link android.service.chooser.AdditionalContentContract.Columns#URI} column for the item
+ * URI.
+ * - Optional columns {@link MediaStore.MediaColumns#WIDTH} and
+ * {@link MediaStore.MediaColumns#HEIGHT} for the dimensions of the preview image.
+ * These columns can also be returned for each {@link #EXTRA_STREAM} item metadata
+ * {@link ContentProvider#query(Uri, String[], Bundle, CancellationSignal)} call.
+ * - Optional {@link AdditionalContentContract.CursorExtraKeys#POSITION} extra that
* specifies the cursor starting position; the item at this position is expected to match the
- * item specified by {@link #EXTRA_CHOOSER_FOCUSED_ITEM_POSITION}.
+ * item specified by {@link #EXTRA_CHOOSER_FOCUSED_ITEM_POSITION}.
*
* When the user makes a selection change,
* {@link ContentProvider#call(String, String, Bundle)} method will be invoked with the "method"
--
cgit v1.2.3-59-g8ed1b