clear the songs list before filling it to be prevent duplicating
This commit is contained in:
parent
c49612af5a
commit
6a6fd45285
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue