am c5807808: docs: Fixed typo in Wear training class. Bug: 16709202
* commit 'c58078085a3fb30947d7982536ebe0a06cdf4b62': docs: Fixed typo in Wear training class. Bug: 16709202
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user