protected override void OnPerformAction() { base.OnPerformAction(); var item = _adapter.GetItem(_position); if (_adapter.SwipeItemPinnedStateController.IsPinnedForAnyState(item)) { _adapter.SwipeItemPinnedStateController.SetPinnedForAllStates(item, false); _adapter.NotifyItemChanged(_position); } }
protected override void OnPerformAction() { base.OnPerformAction(); var stateController = _adpater.SwipeItemPinnedStateController.FromSwipeDirection(_swipeDirection); var item = _adpater.GetItem(_position); if (!stateController.IsPinned(item)) { stateController.SetPinnedState(item, true); _adpater.NotifyItemChanged(_position); } }
public void NotifyItemChanged() => _nonExpandableAdapter.NotifyItemChanged(_itemPosition);