maxrave-dev / maxrave-dev/SimpMusic

​[Bug]: Notification media controls skip to the previous song on 'back' press instead of restarting current track

Open
#2,062 0 comments 0 reactions 0 assignees View on GitHub

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.

  1. ​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.

  2. 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
  1. Open the app and play a track from a playlist or queue.
  2. Let the song play past the initial few seconds (e.g., past 01:30).
  3. Tap the "Previous" button inside the app UI — observe that it restarts the current song.
  4. Pull down the system notification shade and tap the "Previous" button on the notification media player.
  5. Observe that it immediately skips to the previous track instead of restarting the current one.
  6. Notice the layout flash/refresh whenever a new track starts playing.
Expected Behavior
  1. 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.

  2. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.