From 95fcbaff32ca3647ccef23d5504cfa05667d3ced Mon Sep 17 00:00:00 2001 From: Christopher Eby Date: Sun, 11 Apr 2010 00:27:32 -0500 Subject: [PATCH] Add ids to array in order in getAllSongIdsWith --- src/org/kreed/vanilla/Song.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/kreed/vanilla/Song.java b/src/org/kreed/vanilla/Song.java index 4e4dedff..c023b750 100644 --- a/src/org/kreed/vanilla/Song.java +++ b/src/org/kreed/vanilla/Song.java @@ -130,10 +130,10 @@ public class Song implements Parcelable { return null; long[] songs = new long[count]; - while (--count != -1) { + for (int i = 0; i != count; ++i) { if (!cursor.moveToNext()) return null; - songs[count] = cursor.getInt(0); + songs[i] = cursor.getInt(0); } cursor.close();