Shuffle and queue buttons mess up the song playing #98
Comments
Hm... yeah I saw. But if you look at the code to generate the random queue, the first song of the queue is picked from the currently playing song and is added immediately and therefore skipped. If you click on the button again, the queue gets reset. |
The bug should now hopefully be fixed. I will test it on my phone too, but it should be ok. I also had to remake the playlist class as I just found out that the Mediastore playlist class is deprecated and should not be used. They suggest using M3U-files instead so that's what I am going for now.
Fixed bug #98 and playlist refactoring
Ok nope. This is not solved. I managed to make the app crash now. Working on it |
Ok should be fixed now. Reverting to the original queue means having to keep track of the original queue all the time. |
Strangely it was working on the emulator, but as soon as I switched to my phone it broke. But yeah I realized the issue almost at the same time as you hahah. |
Fixed issue #98 and removed some TODOs and some old code.
Further testing is required xD |
Always :P |
And I found another issue hahhah. If you try this while using the first song in queue, everything is fine. But as soon as you go to the next song and try it there it changes the title again. |
Ok latest PR sets the playing index to 0 when shuffling and resets it back to what it was when un-shuffling. |
Another attempt at issue #98 and some renaming.
And let's test it again and pray. Because I am tired and want to sleep xD |
Guess who found another problem with it? Yep...me. If you press the next button and then press the previous button it doesn't actually return to the previous song as it should, but actually just picks a random song. Then if you click on the shuffle button again and look at the queue the title gets reset. |
Wow this is a persistent bug, or maybe I'm just not very good at testing XD I hope this one fixes it but if not we'll leave it for tomorrow |
Yet another attempt at solving issue #98
Tested and it works now |
Describe the bug
Pressing the shuffle button and show queue button a few times seems to make the app show the wrong song playing.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Shuffling the queue should not affect the song playing, only the rest of the queue.
The text was updated successfully, but these errors were encountered: