private void StopRadio() { RadioService.SetPlayer(null, -1); StopService(_radioService); ResetButtons(); HideNotification(); }
#pragma warning restore 612, 618 private async Task StartRadioAsync(string url, MaterialButton button, string notification) { var player = new RadioPlayer(this, url); await player.StartAsync(); RadioService.SetPlayer(player, button.Id); StartService(_radioService); button.Icon = GetPlayerIcon(false); ShowNotification(notification); }