void OnLongClick(int position) { if (type == ListType.Favs) { position--; } if (position == -1) { return; } Song item = songs[position]; if (type == ListType.Queue) { BottomSheetAction endAction = new BottomSheetAction(Resource.Drawable.Close, MainActivity.instance.GetString(Resource.String.remove_from_queue), (sender, eventArg) => { MusicPlayer.RemoveFromQueue(position); }); MainActivity.instance.More(item, () => { OnClick(position); }, endAction); } else { MainActivity.instance.More(item); } }
public BottomSheetAction(BottomSheetAction baseAction) { Ressource = baseAction.Ressource; name = baseAction.name; action = baseAction.action; }