/// <summary> /// Remove call /// </summary> /// <param name="adapterPosition">Index.</param> void RemoveCall(int adapterPosition) { var call = _calls[adapterPosition]; RunService.RemoveCall(_repository, call); _adapter.NotifyItemRemoved(adapterPosition); TogglePlaceholderVisibility(); }
/// <summary> /// Remove Call /// </summary> /// <param name="adapterPosition">Adapter position.</param> /// <param name="action">Action.</param> void OnCallAction(int adapterPosition, CallViewHolderAction action) { if (action == CallViewHolderAction.Remove) { var call = _calls[adapterPosition]; RunService.RemoveCall(_repository, call); //_adapter.NotifyItemChanged(adapterPosition); } }