hefuyicoder / ListenerMusicPlayer

A Grace Material Design Music Player
2.4k stars 574 forks source link

文件显示歌曲和点击进去看到的歌曲数量不一致。 #38

Open houziershi opened 7 years ago

houziershi commented 7 years ago

比如:显示11首,但是,点击进入该文件夹,会发现歌曲比它多。原因,music/和music/songs 下面都有歌曲,比如music有11首。而music/songs 有3首。然后,文件夹music/显示11首,但是,点击进入会发现有14首

houziershi commented 7 years ago

public static List getMusicFromFolder(Context context, long parent) { List infos = new ArrayList(); final String[] proj_id = new String[]{MediaStore.Files.FileColumns._ID}; Uri uri1 = MediaStore.Files.getContentUri("external"); /* final String where_id = MediaStore.Files.FileColumns.PARENT + " =" + String.valueOf(parent)

Cryolitia commented 6 years ago

What's the code?Could you please give me a commit address?