Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid registering the sensor if it's null #12

Merged
merged 1 commit into from
Dec 7, 2016
Merged

Conversation

rocboronat
Copy link
Member

For some reason, some phones return a null sensor when getting the default one. So, we will check for it before registering the sensort to avoid crashes like http://crashes.to/s/2fd03a11431

BTW, sorry for the last line. I edited the file using the website so I don't have any idea about why it has changed :·/

@rocboronat rocboronat added the bug label Dec 7, 2016
@Sloy
Copy link
Member

Sloy commented Dec 7, 2016

This might be related to #8, but crashing because of a non-safe implementation on Android 4. Just a hypothesis 🤔

Thanks for the fix!!

@Sloy
Copy link
Member

Sloy commented Dec 7, 2016

BTW nice branch name 😆

@rocboronat
Copy link
Member Author

Whoop, just did a nextnextnext in the GitHub editor :·)

@Sloy Sloy merged commit 59fef9a into master Dec 7, 2016
@Sloy Sloy deleted the rocboronat-patch-1 branch December 7, 2016 10:13
@Sloy
Copy link
Member

Sloy commented Dec 7, 2016

@rocboronat fix now published on v1.1.1. God save CI!

@rocboronat
Copy link
Member Author

Thanks, @Sloy ! Just updating our version and launching it to Google Play! 🎉

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

Successfully merging this pull request may close these issues.

2 participants