Add ids to array in order in getAllSongIdsWith
This commit is contained in:
parent
b98b107499
commit
95fcbaff32
@ -130,10 +130,10 @@ public class Song implements Parcelable {
|
|||||||
return null;
|
return null;
|
||||||
|
|
||||||
long[] songs = new long[count];
|
long[] songs = new long[count];
|
||||||
while (--count != -1) {
|
for (int i = 0; i != count; ++i) {
|
||||||
if (!cursor.moveToNext())
|
if (!cursor.moveToNext())
|
||||||
return null;
|
return null;
|
||||||
songs[count] = cursor.getInt(0);
|
songs[i] = cursor.getInt(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
cursor.close();
|
cursor.close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user