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

Commit b721b478 authored by Jeff Hamilton's avatar Jeff Hamilton
Browse files

Add a constructor from CursorAdapter to ResourceCursorAdapter.

Change-Id: I423bab1907c24a718a8575d5cbe0cee0e5e4968e
parent 036b07cc
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
@@ -213325,6 +213325,17 @@
 visibility="public"
>
</method>
<method name="getVisibleTitleHeight"
 return="int"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="getZoomControls"
 return="android.view.View"
 abstract="false"
@@ -228110,6 +228121,22 @@
<parameter name="autoRequery" type="boolean">
</parameter>
</constructor>
<constructor name="ResourceCursorAdapter"
 type="android.widget.ResourceCursorAdapter"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<parameter name="context" type="android.content.Context">
</parameter>
<parameter name="layout" type="int">
</parameter>
<parameter name="c" type="android.database.Cursor">
</parameter>
<parameter name="flags" type="int">
</parameter>
</constructor>
<method name="newView"
 return="android.view.View"
 abstract="false"
+20 −6
Original line number Diff line number Diff line
@@ -37,8 +37,7 @@ public abstract class ResourceCursorAdapter extends CursorAdapter {
    /**
     * Constructor.
     *
     * @param context The context where the ListView associated with this
     *            SimpleListItemFactory is running
     * @param context The context where the ListView associated with this adapter is running
     * @param layout resource identifier of a layout file that defines the views
     *            for this list item.  Unless you override them later, this will
     *            define both the item views and the drop down views.
@@ -52,8 +51,7 @@ public abstract class ResourceCursorAdapter extends CursorAdapter {
    /**
     * Constructor.
     *
     * @param context The context where the ListView associated with this
     *            SimpleListItemFactory is running
     * @param context The context where the ListView associated with this adapter is running
     * @param layout resource identifier of a layout file that defines the views
     *            for this list item.  Unless you override them later, this will
     *            define both the item views and the drop down views.
@@ -68,6 +66,22 @@ public abstract class ResourceCursorAdapter extends CursorAdapter {
        mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    }

    /**
     * Constructor.
     *
     * @param context The context where the ListView associated with this adapter is running
     * @param layout resource identifier of a layout file that defines the views
     *            for this list item.  Unless you override them later, this will
     *            define both the item views and the drop down views.
     * @param c The cursor from which to get the data.
     * @param flags flags used to determine the behavior of the adapter
     */
    public ResourceCursorAdapter(Context context, int layout, Cursor c, int flags) {
        super(context, c, flags);
        mLayout = mDropDownLayout = layout;
        mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    }

    /**
     * Inflates view(s) from the specified XML file.
     *