-
Notifications
You must be signed in to change notification settings - Fork 409
getCurrentParameters()/getCapabilities().whenAvailable{} returns null if called too early #170
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
Comments
(same will happen for current parameters) |
Explicit, improved logs in #181 |
I'm still seeing this issue when testing the latest master code. Here are the logs:
|
I believe that pull request will fix it #188 |
What are you trying to achieve or the steps to reproduce?
I'm trying to call Fotoapparat.getCurrentParameters().whenAvailable { ... } and Fotoapparat.getCapabilities().whenAvailable { ... } in my Activity's onStart().
How did you initialize FA?
What was the result you received?
Both calls return NULL and the log shows "Couldn't deliver pending result":
What did you expect?
I expect the calls to return valid results and delay their async callbacks if the camera is still initializing.
Context:
The text was updated successfully, but these errors were encountered: