Ejemplo n.º 1
0
        async void songCardClicked(object sender, SongModel song)
        {
            // SONG CLICKED
            Console.WriteLine($"We have Fire baby{song.SongTitle}");
            string lyrics = await MusicService.GetLyricsBySongId(song.SongId);

            if (string.IsNullOrEmpty(lyrics))
            {
                Console.WriteLine("no lyrics");
                return;
            }
            if (LyricModal != null)
            {
                LyricModal.Dispose();
                LyricModal = null;
            }

            if (LyricModal == null)
            {
                UIImage xI = await Functions.LoadImage(song.AlbumImage);

                LyricModal = new LyricModal(lyrics, xI, song);
            }
            await PresentViewControllerAsync(LyricModal, true);
        }