Beispiel #1
0
        protected override void OnPerformAction()
        {
            base.OnPerformAction();

            var item = _adapter.GetItem(_position);

            if (_adapter.SwipeItemPinnedStateController.IsPinnedForAnyState(item))
            {
                _adapter.SwipeItemPinnedStateController.SetPinnedForAllStates(item, false);
                _adapter.NotifyItemChanged(_position);
            }
        }
Beispiel #2
0
        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 object GetItem() => _nonExpandableAdapter.GetItem(_itemPosition);