docs: Fixed typo in Wear training class. Bug: 16709202

Change-Id: I4649546f2ebe2dba7266a3260d0aa4388a2a7fe1
This commit is contained in:
Ricardo Cervera
2014-08-20 15:51:17 -07:00
parent 8319455afc
commit c58078085a

View File

@@ -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