Skip to content

Commit f833deb

Browse files
authored
Merge pull request #107 from Demonstrandum/master
Set foreground media player title on Android when available.
2 parents 9110d5d + 6992cf7 commit f833deb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

android/src/main/kotlin/me/sithiramunasinghe/flutter/flutter_radio_player/FlutterRadioPlayerPlugin.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ class FlutterRadioPlayerPlugin : FlutterPlugin, ActivityAware, MethodCallHandler
110110
if (it.title.isNullOrEmpty()) {
111111
mediaMeta.setArtist(getAppName())
112112
} else {
113-
mediaMeta.setArtist(it.title)
113+
mediaMeta.setTitle(it.title)
114+
mediaMeta.setArtist(getAppName())
114115
}
115116
if (!it.artwork.isNullOrEmpty()) {
116117
if ((it.artwork!!.contains("http") || it.artwork!!.contains("https"))) {

0 commit comments

Comments
 (0)