Small bug fix.
This commit is contained in:
parent
c96e5f42b9
commit
2a7dad6ad0
1 changed files with 1 additions and 1 deletions
|
|
@ -796,7 +796,7 @@ public class MusicService extends Service implements MediaPlayer.OnPreparedListe
|
||||||
//to let other apps know whats playing. i.E. last.fm (scrobbling) or musixmatch
|
//to let other apps know whats playing. i.E. last.fm (scrobbling) or musixmatch
|
||||||
final Intent intent = new Intent(what);
|
final Intent intent = new Intent(what);
|
||||||
final int position = getPosition();
|
final int position = getPosition();
|
||||||
if(position >= 0) {
|
if (position >= 0 && !playingQueue.isEmpty()) {
|
||||||
final Song currentSong = playingQueue.get(position);
|
final Song currentSong = playingQueue.get(position);
|
||||||
intent.putExtra("id", currentSong.id);
|
intent.putExtra("id", currentSong.id);
|
||||||
intent.putExtra("artist", currentSong.artistName);
|
intent.putExtra("artist", currentSong.artistName);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue