mirror of
https://github.com/zoriya/Opus.git
synced 2026-06-03 14:35:33 +00:00
Solving local play bug
This commit is contained in:
@@ -1192,7 +1192,7 @@ namespace MusicApp
|
||||
HideTabs();
|
||||
HideSearch();
|
||||
|
||||
if(Queue.instance != null)
|
||||
if (Queue.instance != null)
|
||||
{
|
||||
ViewGroup rootView = FindViewById<ViewGroup>(Android.Resource.Id.Content);
|
||||
rootView.RemoveView(Queue.instance.recyclerFragment);
|
||||
|
||||
@@ -332,7 +332,6 @@ namespace MusicApp.Resources.Portable_Class
|
||||
while(instance == null)
|
||||
await Task.Delay(10);
|
||||
|
||||
Player.instance?.RefreshPlayer();
|
||||
for (int i = clearQueue ? 1 : 0; i < filePath.Count; i++)
|
||||
{
|
||||
GetTrackSong(filePath[i], out Song song);
|
||||
|
||||
@@ -491,14 +491,14 @@ namespace MusicApp.Resources.Portable_Class
|
||||
musicCursor.Close();
|
||||
}
|
||||
|
||||
MainActivity.instance.HideTabs();
|
||||
MainActivity.instance.HideSearch();
|
||||
MainActivity.instance.SupportFragmentManager.BeginTransaction().Replace(Resource.Id.contentView, Player.NewInstance()).AddToBackStack(null).Commit();
|
||||
|
||||
Intent intent = new Intent(Android.App.Application.Context, typeof(MusicPlayer));
|
||||
intent.PutStringArrayListExtra("files", tracksPath);
|
||||
intent.SetAction("RandomPlay");
|
||||
context.StartService(intent);
|
||||
|
||||
MainActivity.instance.HideTabs();
|
||||
MainActivity.instance.HideSearch();
|
||||
MainActivity.instance.SupportFragmentManager.BeginTransaction().Replace(Resource.Id.contentView, Player.NewInstance()).AddToBackStack(null).Commit();
|
||||
}
|
||||
|
||||
void Rename(int position, Song playlist)
|
||||
|
||||
@@ -813,7 +813,7 @@ namespace MusicApp.Resources.Portable_Class
|
||||
|
||||
nextPageToken = ytPlaylist.NextPageToken;
|
||||
}
|
||||
MusicPlayer.queue.Clear();
|
||||
//MusicPlayer.queue.Clear();
|
||||
Random r = new Random();
|
||||
tracks = tracks.OrderBy(x => r.Next()).ToList();
|
||||
PlayFiles(tracks.ToArray());
|
||||
|
||||
Reference in New Issue
Block a user