mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 17:43:06 +02:00
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) {
|
||||
ArrayList<Long> checked = new ArrayList<Long>();
|
||||
for (int i = 0; i < array.size(); i++) {
|
||||
if (array.valueAt(i)) {
|
||||
checked.add(trackIds[i]);
|
||||
int key = array.keyAt(i);
|
||||
if (array.get(key)) {
|
||||
checked.add(trackIds[key]);
|
||||
}
|
||||
}
|
||||
long[] result = new long[checked.size()];
|
||||
|
||||
Reference in New Issue
Block a user