Bug 963046 - Add image_url column to HomeProvider's fake items (r=margaret)

This commit is contained in:
Lucas Rocha 2014-02-06 21:06:39 +00:00
parent 9adfa852c9
commit add8fae09e
2 changed files with 8 additions and 4 deletions

View File

@ -103,7 +103,8 @@ public class HomeProvider extends SQLiteBridgeContentProvider {
HomeItems.DATASET_ID,
HomeItems.URL,
HomeItems.TITLE,
HomeItems.DESCRIPTION
HomeItems.DESCRIPTION,
HomeItems.IMAGE_URL
};
final MatrixCursor c = new MatrixCursor(itemsColumns);
@ -115,7 +116,8 @@ public class HomeProvider extends SQLiteBridgeContentProvider {
item.getString("dataset_id"),
item.getString("url"),
item.getString("title"),
item.getString("description")
item.getString("description"),
item.getString("image_url")
});
} catch (JSONException e) {
Log.e(LOGTAG, "Error creating cursor row for fake home item", e);

View File

@ -3,11 +3,13 @@
"dataset_id": "fake-dataset",
"url": "http://example.com/first",
"title": "First Example",
"description": "This is an example"
"description": "This is an example",
"image_url": "http://lorempixel.com/64/64?id=1"
}, {
"id": 2,
"dataset_id": "fake-dataset",
"url": "http://example.com/second",
"title": "Second Example",
"description": "This is a second example"
"description": "This is a second example",
"image_url": "http://lorempixel.com/64/64?id=2"
}]