From 47386b52e71d4c41cc9018f63844fc9a3c94a1e4 Mon Sep 17 00:00:00 2001 From: Tristan Roux Date: Sun, 28 Apr 2019 01:02:52 +0200 Subject: [PATCH] Solving a bug with the queue play state indicator. --- Opus/Code/UI/Fragments/Queue.cs | 2 +- Opus/Opus.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Opus/Code/UI/Fragments/Queue.cs b/Opus/Code/UI/Fragments/Queue.cs index d6710e4..d5a3457 100644 --- a/Opus/Code/UI/Fragments/Queue.cs +++ b/Opus/Code/UI/Fragments/Queue.cs @@ -109,7 +109,7 @@ public class Queue : Fragment, RecyclerView.IOnItemTouchListener, PopupMenu.IOnM int last = ((LinearLayoutManager)ListView.GetLayoutManager()).FindLastVisibleItemPosition(); for (int i = first; i <= last; i++) { - if(i > 0 && MusicPlayer.queue.Count > i) + if(i > 0 && MusicPlayer.queue.Count > i - 1) { Song song = MusicPlayer.queue[i - 1]; SongHolder holder = (SongHolder)ListView.GetChildViewHolder(((LinearLayoutManager)ListView.GetLayoutManager()).FindViewByPosition(i)); diff --git a/Opus/Opus.csproj b/Opus/Opus.csproj index bf3b0f6..f0caeda 100644 --- a/Opus/Opus.csproj +++ b/Opus/Opus.csproj @@ -37,7 +37,7 @@ DEBUG;TRACE prompt 4 - false + true SdkOnly true false