SimpleMobileTools / Simple-Music-Player

A clean music player with a customizable widget, stylish interface and no ads.
https://www.simplemobiletools.com
GNU General Public License v3.0
1.27k stars 412 forks source link

Miscellaneous improvements and bug fixes #484

Closed naveensingh closed 1 year ago

naveensingh commented 1 year ago

This PR addresses issues https://github.com/SimpleMobileTools/Simple-Music-Player/issues/470, https://github.com/SimpleMobileTools/Simple-Music-Player/issues/391, https://github.com/SimpleMobileTools/Simple-Music-Player/issues/376, and some notification, widget related improvements and bug fixes.

Major changes:

tibbi commented 1 year ago

seems to work nice, just found 1 issue with bluetooth initializing. If I have the app shut down and get into the car and it connects to my mobile, it automatically triggers KeyEvent.KEYCODE_MEDIA_PLAY, which is ok. The audio starts playing, but the current tracks name, progress etc arent shown neither in the car, nor in the mobile notification. The notification shows up with no info about the current track and the controls work, but even if I pause/play or do next song, the played files data doesnt show up anywhere. Can you somehow reproduce it?

naveensingh commented 1 year ago

I'm working on it... I don't immediately have access to a car but I can reproduce a similar issue on a Samsung phone running android 12, the title and artist data don't show up but it does right after I pause or hit next.

even if I pause/play or do next song, the played files data doesnt show up anywhere

that's really strange, even if the metadata update was missed once, it should get updated at the next call. The "empty" notification is still there on the phone when this happens?

naveensingh commented 1 year ago

If I have the app shut down and get into the car and it connects to my mobile

does everything show up correctly when you have the app in the foreground?

tibbi commented 1 year ago

seems to work really well now, will see if other people report some issues :) So is this ready to be merged?

tibbi commented 1 year ago

I see that you havent really changed actual code since my last review, just some readability stuff. Guess those issues depend on some circumstances, we will see how will it behave in real world. I would merge it if ready.

naveensingh commented 1 year ago

yep, it can be merged.

I have been using the app for playing music and audiobooks since I created the PR and found no issues on android 13. I encountered that empty metadata issue only one time while the app was in the background but I couldn't reproduce it again. I guess we'll address those issues another time in another PR :)

naveensingh commented 1 year ago

I think #391 and #376 can be closed now.