maxrave-dev / maxrave-dev/SimpMusic
[Bug]: Notification media controls skip to the previous song on 'back' press instead of restarting current track
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 11.4k
- Forks
- 599
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 7
Description
Duplicate Check
- I confirm I searched for existing reports and found no duplicates.
Describe the Bug
There are two distinct UI/playback sync issues occurring with the media controls, particularly when interacting with the notification panel and during track transitions.
-
Inconsistent 'Back' Button Behavior: When pressing the "Previous/Back" media control within the main app UI, the current song correctly restarts from the beginning (as intended). However, if the same "Previous" button is pressed inside the system notification panel media controls, it incorrectly skips directly to the previous track in the queue instead of resetting the current song.
-
Control Panel Refresh Glitch: Every time a song changes (either automatically or manually), the notification media control panel visibly flashes/refreshes entirely rather than seamlessly updating the metadata.
Steps to Reproduce
- Open the app and play a track from a playlist or queue.
- Let the song play past the initial few seconds (e.g., past 01:30).
- Tap the "Previous" button inside the app UI — observe that it restarts the current song.
- Pull down the system notification shade and tap the "Previous" button on the notification media player.
- Observe that it immediately skips to the previous track instead of restarting the current one.
- Notice the layout flash/refresh whenever a new track starts playing.
Expected Behavior
-
The notification media controls should mirror the app's internal logic: pressing "Previous" while a song is well underway should restart the current track from 00:00.
-
The notification panel should update metadata (title, artist, album art) smoothly without triggering a full visual layout refresh/redesign cycle.
App Version
1.3.0
Android Version
Android 16
Device Model
Poco X7 Pro
Custom ROM
- I am using a custom ROM
Custom ROM Name (if applicable)
No response
Screenshots (optional)
No response
Log / Error Details
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Android notification media-control handler and the track-transition path, then reproduce the Previous-button behavior after a track has played past 01:30. Compare notification behavior with the app's internal Previous action and observe how metadata updates when tracks change. Done means the notification control restarts the current track when appropriate and the panel updates without a visible full refresh.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100