Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

geofire-2 DatabaseError.fromStatus #25

Closed
ergobot opened this issue Jun 10, 2016 · 1 comment
Closed

geofire-2 DatabaseError.fromStatus #25

ergobot opened this issue Jun 10, 2016 · 1 comment

Comments

@ergobot
Copy link

ergobot commented Jun 10, 2016

imported geofire-java classes (from geofire-2 branch) into my android project. I was unable to build.
in GeoFire.java:80 (https://github.com/firebase/geofire-java/blob/geofire-2/src/main/java/com/firebase/geofire/GeoFire.java)
changed from:
this.callback.onCancelled(DatabaseError.fromStatus(message));
to
this.callback.onCancelled(DatabaseError.fromException(new DatabaseException("message")));

I didnt see fromStatus(String) in:
https://firebase.google.com/docs/reference/android/com/google/firebase/database/DatabaseError.html#public-methods

It works to build but it was just a workaround to build. I'm not familiar enough yet with everything to offer a good answer/test.

Very excited to use the library, thanks for the work

@samtstern
Copy link
Contributor

Fixed by #34

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants