Media controls in lock screen not completely up-to-date

MAFA version: mafa-3.1.0 (791)
Android version: 15 (LineageOS 22.2-20250726-NIGHTLY-beyond0lte)
Device model: Samsung Galaxy S10e
MPD version: 0.23.17 (protocol version 0.23.5)

Hello,

I am very happy that MAFA makes use of the Android media controls widget which enables easy controlling of multimedia being played. I have noticed an issue, however, when a next track is being played.

When my screen is unlocked and I look at the media controls widget in my home screen, everything is fine. It shows what MAFA currently plays, and once the next track comes up, it updates nicely.

However, in my lock screen I also have these media controls showing. I really like this, for example to quickly check what is curently playing. However, here the widget gets out of sync as soon as the next track plays. More interestingly: the seek/progress bar and duration do update correctly with the new song, but all other metadata (artist, song, album, album art) are of the previous track. This only updates as soon as I unlock my phone again.

I have tested whether this issue happens with other multimedia player apps which make use of the media controls, and it is only MAFA which suffers from this issue. Conversely, on a different device MAFA shows this issue as well.

Therefore, I suspect this is a bug in MAFA.

Addendum: another difference with other players is that when I press pause, with MAFA the media controls widget disappears (and other players do not). However, interestingly, this is only the case when the screen is unlocked. In the lock screen the widget is still visible when music is paused. I think the desired behavior is to show the widget even if music is paused. Only hide if stopped.

Would love to hear from you, thanks!

I was yet unable to reproduce this issue (also with updated LineageOS).

There are several Android settings to control specific app notifications and media notifications. Maybe some combination of those causes this issue.

Is the setting: Notifications → “Show only when playing”, off?

Your comments guided me to check MAFA’s permissions for sending notifications at the OS level. Turns out those were disabled! After enabling them the widget now updates just fine.

Now, regarding the issue of hiding when pausing, I forgot to mention this is a different rendering of the same (?) widget, since I’m using Niagara launcher. I can btw confirm that the Notifications settings in MAFA itself are correct.

Do you have ideas on how to fix the pause-and-hide issue with the widget in the Niagara launcher home screen? It’s still odd that other players do not hide the widget on pause.

Thanks!

I’ve fixed a bug that may have been the cause of this issue, but I’m not certain because I couldn’t reproduce it.

Please test with the new MAFA beta version 3.1.1 (enable Settings → Update → “Include beta versions”, and then check for updates manually to see this new version).

1 Like

Yes, that does indeed fix it. Great, thanks!

Thank you for the detailed bug report.

1 Like