Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81a476f6 authored by Alan Jones's avatar Alan Jones Committed by Jean-Baptiste Queru
Browse files

Fixed Issue 2682: ContentProvider query() SDK docs deprecated

parent f6737d3a
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -314,9 +314,10 @@ public abstract class ContentProvider implements ComponentCallbacks {
     * Example client call:<p>
     * <pre>// Request a specific record.
     * Cursor managedCursor = managedQuery(
                Contacts.People.CONTENT_URI.addId(2),
                ContentUris.withAppendedId(Contacts.People.CONTENT_URI, 2),
                projection,    // Which columns to return.
                null,          // WHERE clause.
                null,          // WHERE clause value substitution
                People.NAME + " ASC");   // Sort order.</pre>
     * Example implementation:<p>
     * <pre>// SQLiteQueryBuilder is a helper class that creates the
@@ -352,6 +353,9 @@ public abstract class ContentProvider implements ComponentCallbacks {
     *      null all columns are included.
     * @param selection A selection criteria to apply when filtering rows.
     *      If null then all rows are included.
     * @param selectionArgs You may include ?s in selection, which will be replaced by
     *      the values from selectionArgs, in order that they appear in the selection.
     *      The values will be bound as Strings.
     * @param sortOrder How the rows in the cursor should be sorted.
     *      If null then the provider is free to define the sort order.
     * @return a Cursor or null.