-
Notifications
You must be signed in to change notification settings - Fork 453
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
Automotive sample crashes on emulators that do not display group titles #2033
Comments
Thanks for your report. From what you describe, I believe this is an issue with the AAOS app or then the structure of the content provided to AAOS by the app rather than Media3.
Without the modification it works, where with your modification to use a group title it starts to fail. I'd think that AAOS needs to anticipate to some extend, that the data is wrong. Said that, I don't actually know why this fails, but from the stack trace above I'd expect that when clicking a media item that is displyed somewhere, AAOS should take care to not fail here. Can you point me to the AAOS documentation that describes what you are doing with |
Thank you for your answer. What I'm doing with Here are the relevant references:
Additionally, I’ve observed that Spotify and Deezer, which also group content, do not crash under the same conditions, suggesting their implementations avoid this issue. One hypothesis is that they rely on an earlier version of Could you help me better understand how Media3 interacts with AAOS when grouping content? Could there have been a regression between Media2 and Media3 that might explain this behavior? Any guidance on ensuring compatibility between grouped content and the AAOS media experience would be greatly appreciated. |
Version
Media3 1.5.1
More version details
Modify the demo-session-automotive app to display group titles
MediaItemTree.kt
at line 100.buildMediaItem
method to add a group title as follows:Alternatively, apply the attached
set_group_title.patch
file using Git.set_group_title.patch
Devices that reproduce the issue
Any emulator that is not able to display group titles, including the following:
Devices that do not reproduce the issue
Devices capable of displaying group titles:
Reproducible in the demo app?
Yes
Reproduction steps
demo-session-automotive
app on an Automotive emulator that does not support displaying group titles.The app crashes with the following exception:
Where
n
corresponds to the total number of items in the list/grid + 1, regardless of the index of the item you've clicked on.Expected result
The app should navigate to the requested content without crashing.
Actual result
Only when the content (list/grid) is scrolled to the end, any navigation interaction triggers an
IndexOutOfBoundsException
.See stacktrace.txt.
Media
Not applicable
Bug Report
adb bugreport
to [email protected] after filing this issue.The text was updated successfully, but these errors were encountered: