mirror of
https://github.com/zoriya/Opus.git
synced 2025-12-06 06:26:15 +00:00
Solving a bug with small player display.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user