forked from upstream-mirrors/OpenTracks
Bug fix: fix index used when play multiple tracks
This commit is contained in:
+3
-2
@@ -98,8 +98,9 @@ public class PlayMultipleDialogFragment extends AbstractMyTracksDialogFragment {
|
|||||||
private long[] getChecked(SparseBooleanArray array) {
|
private long[] getChecked(SparseBooleanArray array) {
|
||||||
ArrayList<Long> checked = new ArrayList<Long>();
|
ArrayList<Long> checked = new ArrayList<Long>();
|
||||||
for (int i = 0; i < array.size(); i++) {
|
for (int i = 0; i < array.size(); i++) {
|
||||||
if (array.valueAt(i)) {
|
int key = array.keyAt(i);
|
||||||
checked.add(trackIds[i]);
|
if (array.get(key)) {
|
||||||
|
checked.add(trackIds[key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
long[] result = new long[checked.size()];
|
long[] result = new long[checked.size()];
|
||||||
|
|||||||
Reference in New Issue
Block a user