Included song title, ablum and artist in broadcast even when there is no Android media ID for the track. (#791)
This commit is contained in:
1 parent
b957b49e72
commit
2354f7ee3a
1 file changed
+3
-3
@@ -1165,10 +1165,10 @@ public final class PlaybackService extends Service
|
||||
if (mStockBroadcast) {
|
||||
Intent intent = new Intent("com.android.music.playstatechanged");
|
||||
intent.putExtra("playing", (mState & FLAG_PLAYING) != 0);
|
||||
intent.putExtra("track", song.title);
|
||||
intent.putExtra("album", song.album);
|
||||
intent.putExtra("artist", song.artist);
|
||||
if (androidIds[0] != -1) {
|
||||
intent.putExtra("track", song.title);
|
||||
intent.putExtra("album", song.album);
|
||||
intent.putExtra("artist", song.artist);
|
||||
intent.putExtra("songid", androidIds[0]);
|
||||
intent.putExtra("albumid", androidIds[1]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user