clear the songs list before filling it to be prevent duplicating

This commit is contained in:
tibbi 2016-01-20 23:26:54 +01:00
parent c49612af5a
commit 6a6fd45285

View file

@ -70,6 +70,7 @@ public class MusicService extends Service
}
private void fillPlaylist() {
songs.clear();
final ContentResolver musicResolver = getContentResolver();
final Uri musicUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
final Cursor musicCursor = musicResolver.query(musicUri, null, null, null, null);