Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
theweavr committed Dec 19, 2017
1 parent 4261171 commit 225848e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion BreadPlayer.Common/Messenger/MessageTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public enum MessageTypes
MsgStopAfterSong,
MsgImportFolder,
MsgNavigate,
MsgSearch
MsgSearch,
MsgChangePlaylist
//MSG_CUSTOMER_SAVED // Sent when a Customer is updated to the repository
}
}
2 changes: 1 addition & 1 deletion BreadPlayer.Extensions/ThreadSafeObservableCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ private TResult SafeEnterWriteLock<TResult>(Func<TResult> action)
}
private TResult SafeEnterReadLock<TResult>(Func<TResult> action)
{
if (!Sync.IsReadLockHeld)
if (!Sync.IsReadLockHeld && !Sync.IsWriteLockHeld)
{
Sync.EnterReadLock();
}
Expand Down
2 changes: 1 addition & 1 deletion BreadPlayer.Views.UWP/Shell.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<BPControls:ImageEx
x:Name="MainBackgroundImage"
Margin="0,0,0,70"
Source="{Binding Source={StaticResource Core}, Path=Instance.Player.CurrentlyPlayingFile.AttachedPicture, Converter={StaticResource PathToImage}, ConverterParameter='null'}"
Source="{Binding Source={StaticResource Core}, Path=Instance.Player.CurrentlyPlayingFile.AttachedPicture}"
Stretch="UniformToFill">
<Image
x:Name="backgroundImage"
Expand Down
4 changes: 4 additions & 0 deletions BreadPlayer.Views.UWP/Shell.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
}
NowPlayingFrame.Navigate(payload.pageType, payload.parameter, new Windows.UI.Xaml.Media.Animation.SlideNavigationTransitionInfo());
}
else if(payload.pageType == typeof(PlaylistView))
{
NowPlayingFrame.Navigate(payload.pageType, payload.parameter, new Windows.UI.Xaml.Media.Animation.SlideNavigationTransitionInfo());
}
if (ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons"))
{
Windows.Phone.UI.Input.HardwareButtons.BackPressed += BackButtonPressed;
Expand Down
4 changes: 2 additions & 2 deletions BreadPlayer.Views.UWP/ViewModels/AlbumArtistViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ await Task.Run(() =>
}
}).ContinueWith(async (task) =>
{
await AlbumArtistService.InsertAlbums(albums).ConfigureAwait(false);
await AlbumArtistService.InsertArtists(artists).ConfigureAwait(false);
await AlbumArtistService.InsertAlbums(albums);
await AlbumArtistService.InsertArtists(artists);
ArtistsCollection.CollectionChanged += ArtistsCollection_CollectionChanged;
});
}
Expand Down

0 comments on commit 225848e

Please sign in to comment.