Skip to content

Commit

Permalink
Merge pull request #107 from Demonstrandum/master
Browse files Browse the repository at this point in the history
Set foreground media player title on Android when available.
  • Loading branch information
Sithira authored Nov 7, 2024
2 parents 9110d5d + 6992cf7 commit f833deb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ class FlutterRadioPlayerPlugin : FlutterPlugin, ActivityAware, MethodCallHandler
if (it.title.isNullOrEmpty()) {
mediaMeta.setArtist(getAppName())
} else {
mediaMeta.setArtist(it.title)
mediaMeta.setTitle(it.title)
mediaMeta.setArtist(getAppName())
}
if (!it.artwork.isNullOrEmpty()) {
if ((it.artwork!!.contains("http") || it.artwork!!.contains("https"))) {
Expand Down

0 comments on commit f833deb

Please sign in to comment.