This commit is contained in:
Adrian Ulrich 2016-11-21 15:42:07 +01:00
parent 736da85770
commit a2e87d3670

View File

@ -46,7 +46,7 @@ public class PlayCountsHelper {
Cursor cursor = MediaLibrary.queryLibrary(context, MediaLibrary.TABLE_SONGS, new String[]{ MediaLibrary.SongColumns._ID }, MediaLibrary.SongColumns.PLAYCOUNT+" > 0", null, MediaLibrary.SongColumns.PLAYCOUNT+" DESC");
while (cursor.moveToNext() && limit > 0) {
payload.add(cursor.getLong(0));
limit --;
limit--;
}
cursor.close();
return payload;