-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
Error when throwing exception in getChildren #1081
Comments
This is due to a null check operator error in the getChildren function. |
I can add this, although since it would be a breaking change, it will go in the |
That would be great! Should I adjust my PR, or will you implement it on your own? |
There may be some value in separating the changes into non-breaking (to be merged into |
Just thinking on this, the non-breaking version of this would be to make it sot hat if In the major version, we can then change the API to allow returning Following the docs, the idea would be that before the @dsst95 Since you have a PR in progress, I'd be happy to let you implement this, but I'd be just happy to implement it. Note that there would need to be some null-checking on the platform side for |
Feature proposal
It should be possible to show an custom error in full screen in Android Auto. When an error occurs during AudioHandler.getChildren, result.sendError is used which leads to another exception:
Setting the PlayerState to error and returning null from AudioHandler.getChildren is also not possible. But in order to show an full screen error message null must be returned from getChildren.
Motivating use case(s)
I am trying to show an custom full screen error to the user if he is not logged in the app in Android Auto, as described in https://developer.android.com/training/cars/media/automotive-os#-error-handling. But there is no possibility to show an custom error from AudioHandler.getChildren.
The text was updated successfully, but these errors were encountered: