-
-
Notifications
You must be signed in to change notification settings - Fork 512
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
Support previous button in video playlist #1941
Conversation
Fixes jellyfin#1940 Signed-off-by: Kevin G <[email protected]>
return mItems != null && mCurrentIndex - 1 >= 0; | ||
} | ||
|
||
public BaseItemDto getPreviousItem() { |
Check notice
Code scanning / Android Lint
Unknown nullness
@nielsvanvelzen fyi |
Does this work even after the current video completes and "next up" is shown? There's some weird logic used rn that clears old items from the video queue after playback completes, and afaik it's there because of some quirk in how next up works. Can you test letting a video complete/go to "next up" and see if the "previous" button still works/shows up? Here's the code I mentioned:
jellyfin-androidtv/app/src/main/java/org/jellyfin/androidtv/ui/playback/PlaybackController.java Line 1389 in ccb97ac
|
I forgot to test this as I had disabled the 'Next Up' function completely as I don't like it. I can confirm that it doesn't work if 'Next Up' is used. I'll check this out... |
Would it be okay for now if I only enabled the previous button if 'Next Up' is completely disabled? |
In my opinion, a more sustainable approach would be to fix the quirk in the next up behavior that required clearing the old queue items. I can look into that in the next couple days. That's just a suggestion for how we might move forward with getting it working. 🙂 It looks like #1939 does a good chunk of what's needed before removing the queue clearing code thats used for next up |
#1951 is merged so that should fix the issue with nextup breaking the previous button. Can you rebase and confirm things are good to go? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested again with the branch rebased and it works as expected 👍
I'm sorry, somehow I missed the previous comment about rebasing. Thanks for doing that for me and merging! |
Fixes #1940
Signed-off-by: Kevin G [email protected]