mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 963046 - Add image_url column to HomeProvider's fake items (r=margaret)
This commit is contained in:
parent
9adfa852c9
commit
add8fae09e
@ -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);
|
||||
|
@ -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"
|
||||
}]
|
||||
|
Loading…
Reference in New Issue
Block a user