From c58078085a3fb30947d7982536ebe0a06cdf4b62 Mon Sep 17 00:00:00 2001 From: Ricardo Cervera Date: Wed, 20 Aug 2014 15:51:17 -0700 Subject: docs: Fixed typo in Wear training class. Bug: 16709202 Change-Id: I4649546f2ebe2dba7266a3260d0aa4388a2a7fe1 --- docs/html/training/wearables/data-layer/assets.jd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/html/training/wearables/data-layer/assets.jd b/docs/html/training/wearables/data-layer/assets.jd index 52ccbb0..5dc11cb 100644 --- a/docs/html/training/wearables/data-layer/assets.jd +++ b/docs/html/training/wearables/data-layer/assets.jd @@ -91,7 +91,7 @@ public void onDataChanged(DataEventBuffer dataEvents) { for (DataEvent event : dataEvents) { if (event.getType() == DataEvent.TYPE_CHANGED && event.getDataItem().getUri().getPath().equals("/image")) { - DataMapItem dataMapItem = DataMapItem.fromDataItem(dataItem); + DataMapItem dataMapItem = DataMapItem.fromDataItem(event.getDataItem()); Asset profileAsset = dataMapItem.getDataMap().getAsset("profileImage"); Bitmap bitmap = loadBitmapFromAsset(profileAsset); // Do something with the bitmap -- cgit v1.1