Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ager into develop
  • Loading branch information
martijn00 committed Mar 25, 2021
2 parents e760db3 + 0209818 commit 0c71ade
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MediaManager/Platforms/Android/Queue/QueueDataAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ private void MediaQueue_CollectionChanged(object sender, System.Collections.Spec

//move when new is before old
if (newBeginIndex < oldBeginIndex)
for (int i = 0; i > e.NewItems.Count; i++)
for (int i = 0; i < e.NewItems.Count; i++)
_mediaSource.MoveMediaSource(oldEndIndex, newBeginIndex);

//move when new is after old
else if (newBeginIndex > oldBeginIndex)
for (int i = 0; i > e.NewItems.Count; i++)
for (int i = 0; i < e.NewItems.Count; i++)
_mediaSource.MoveMediaSource(oldBeginIndex, newEndIndex);
}
else
Expand All @@ -92,7 +92,7 @@ private void MediaQueue_CollectionChanged(object sender, System.Collections.Spec
case System.Collections.Specialized.NotifyCollectionChangedAction.Replace:
if (e.NewItems.Count > 1)
{
for (int i = 0; i > e.NewItems.Count; i++)
for (int i = 0; i < e.NewItems.Count; i++)
_mediaSource.RemoveMediaSource(e.OldStartingIndex);
}
else
Expand Down

0 comments on commit 0c71ade

Please sign in to comment.