patloew / RxWear

⌚️ Reactive Wearable API Library for Android and RxJava
Other
158 stars 14 forks source link

Unable to get DataMap. #1

Closed ldulcic closed 8 years ago

ldulcic commented 8 years ago

When I try to get DataMap on Wear device like this:

RxWear.Data.get()
        .compose(DataItemGetDataMap.filterByPath("/picture"))
        .subscribe(dataMap -> /* do something */)

I get java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0.

I found this bug report https://code.google.com/p/android/issues/detail?id=74204 which describes this problem so I don't think this is RxWear library problem but I'm wondering is there a way to make this work?

patloew commented 8 years ago

Issue should be fixed in RxWear 1.2.0, could you please confirm?

ldulcic commented 8 years ago

Yes this works in 1.2.0, thanks for such quick response.