From 647e6bd99779d67798422ac8ae83e8085238d349 Mon Sep 17 00:00:00 2001 From: Alan Viverette Date: Thu, 26 Sep 2013 14:38:14 -0700 Subject: [PATCH] Add warning about using MergeCursor in CursorAdapter BUG: 10606539 Change-Id: I0b0835e2dadb5e3800edd32619c433f9e764cd6e --- core/java/android/widget/CursorAdapter.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/core/java/android/widget/CursorAdapter.java b/core/java/android/widget/CursorAdapter.java index 6c4c39d9456f0..d4c5be0615a72 100644 --- a/core/java/android/widget/CursorAdapter.java +++ b/core/java/android/widget/CursorAdapter.java @@ -26,9 +26,13 @@ import android.view.View; import android.view.ViewGroup; /** - * Adapter that exposes data from a {@link android.database.Cursor Cursor} to a - * {@link android.widget.ListView ListView} widget. The Cursor must include - * a column named "_id" or this class will not work. + * Adapter that exposes data from a {@link android.database.Cursor Cursor} to a + * {@link android.widget.ListView ListView} widget. + *

+ * The Cursor must include a column named "_id" or this class will not work. + * Additionally, using {@link android.database.MergeCursor} with this class will + * not work if the merged Cursors have overlapping values in their "_id" + * columns. */ public abstract class CursorAdapter extends BaseAdapter implements Filterable, CursorFilter.CursorFilterClient {