-
Notifications
You must be signed in to change notification settings - Fork 53
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
android: App crashes on chrome.cast.requestSession #43
Comments
The issue is on line 209 Chromecast.java. routeList which is of Type ArrayList does not support "sort" and "comparing" function in API below 24 on android. |
Ah perfect. I had reported this in #42, but I’m one of the the admins for Jellyfin, not so much a code person. Thanks for looking in to this! |
Okay, merged the two PRs to try and get these fixes moving. Still would benefit from a null check as @thornbill mentions here: #45 (review) |
(This is non-issue in 1.0.0 as this is no longer used. 1.0.0 is almost ready on the Android side, but I have feeling a decent amount of work on iOS will be needed... I know it doesn't directly help, but I thought I should mention it.) |
That's odd, it didn't occur to me this method wouldn't exist on an older API version, since ArrayList.sort has always existed in Java. I never knew there were differences in Android API and Java API. I thought Android implemented verbatim the standard Java packages like Java.Util in which ArrayList is from. That's definitely something I'll watch for now! Good to know and sorry for my mistake! |
I have two android devices and app crashes on method chrome.cast.requestSession call with below logs i found in logcat.
Device 1: OnePlus 7Pro, Android 9 - WORKS FINE
Device 2: OnePlus Two, Android 6.0.1 - CRASH
The text was updated successfully, but these errors were encountered: