Solving a bug with small player display.

This commit is contained in:
Tristan Roux
2019-03-13 17:17:29 +01:00
parent 2a5a89dea2
commit bb76f8ac60
3 changed files with 4 additions and 2 deletions

View File

@@ -748,6 +748,7 @@ namespace Opus
FindViewById(Resource.Id.playerContainer).Alpha = 1;
FindViewById(Resource.Id.smallPlayer).Alpha = 0;
SheetBehavior.State = BottomSheetBehavior.StateExpanded;
FindViewById<FrameLayout>(Resource.Id.contentView).SetPadding(0, 0, 0, DpToPx(70));
}
public void ShowSmallPlayer()

View File

@@ -571,8 +571,10 @@ namespace Opus.Resources.Portable_Class
if (action == "Play")
{
if(showPlayer)
if (showPlayer)
MainActivity.instance.ShowPlayer();
else
MainActivity.instance.ShowSmallPlayer();
Song song = new Song(title ?? "", artist ?? "", thumbnailURL, videoID, -1, -1, null, true, false);
queue.Clear();

View File

@@ -665,7 +665,6 @@ namespace Opus.Resources.Portable_Class
MusicPlayer.queue.Clear();
Browse.Play(songs[0]);
songs.RemoveAt(0);
songs.Reverse();
while (MusicPlayer.instance == null)
await Task.Delay(10);