diff options
| author | Jeff Sharkey <jsharkey@google.com> | 2017-04-28 18:42:27 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2017-04-28 18:42:27 +0000 |
| commit | 71af5d35d7892c4fc090ac58caf3ce43bd2b428b (patch) | |
| tree | 1401b41ec12e9e6ca99c5ad5ed3d309785e07770 /core/java/android/content/ClipData.java | |
| parent | 329b258cdb0f7944b63230c4d248649d9e6c08d6 (diff) | |
| parent | bd3fa3c72c9fea8c27e844063c32a8408bbf90b3 (diff) | |
Merge "Change ClipData.addItem signature" into oc-dev am: 5b26dac2c3
am: bd3fa3c72c
Change-Id: I475d9eca8667005959c5578548b622ed7460b2b0
Diffstat (limited to 'core/java/android/content/ClipData.java')
| -rw-r--r-- | core/java/android/content/ClipData.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/core/java/android/content/ClipData.java b/core/java/android/content/ClipData.java index 7f03c3abcddb..9323261f052c 100644 --- a/core/java/android/content/ClipData.java +++ b/core/java/android/content/ClipData.java @@ -847,7 +847,7 @@ public class ClipData implements Parcelable { * Add a new Item to the overall ClipData container. * <p> This method will <em>not</em> update the list of available MIME types in the * {@link ClipDescription}. It should be used only when adding items which do not add new - * MIME types to this clip. If this is not the case, use {@link #addItem(Item, ContentResolver)} + * MIME types to this clip. If this is not the case, use {@link #addItem(ContentResolver, Item)} * or call {@link #ClipData(CharSequence, String[], Item)} with a complete list of MIME types. * @param item Item to be added. */ @@ -858,15 +858,21 @@ public class ClipData implements Parcelable { mItems.add(item); } + /** @removed use #addItem(ContentResolver, Item) instead */ + @Deprecated + public void addItem(Item item, ContentResolver resolver) { + addItem(resolver, item); + } + /** * Add a new Item to the overall ClipData container. * <p> Unlike {@link #addItem(Item)}, this method will update the list of available MIME types * in the {@link ClipDescription}. - * @param item Item to be added. * @param resolver ContentResolver used to get information about the URI possibly contained in * the item. + * @param item Item to be added. */ - public void addItem(Item item, ContentResolver resolver) { + public void addItem(ContentResolver resolver, Item item) { addItem(item); if (item.getHtmlText() != null) { |
