Solving a bug with playlist witch have a sync error.

This commit is contained in:
Anonymus Raccoon
2019-06-10 01:02:48 +02:00
parent f8d4a88507
commit decc538db8

View File

@@ -477,7 +477,7 @@ namespace Opus.Fragments
bottomSheet.Dismiss();
})});
}
else if (!local )
else if (!local)
{
actions.Add(new BottomSheetAction(Resource.Drawable.Sync, Resources.GetString(Resource.String.sync), (sender, eventArg) =>
{
@@ -489,6 +489,9 @@ namespace Opus.Fragments
{
actions.Add(new BottomSheetAction(Resource.Drawable.Delete, Resources.GetString(Resource.String.unfork), (sender, eventArg) =>
{
if (item.SyncState == SyncState.Error)
PlaylistManager.StopSyncing(item);
PlaylistManager.Unfork(item);
YoutubePlaylists.RemoveAt(Position - LocalPlaylists.Count);
adapter.NotifyItemRemoved(Position);