: __pTableView(null)
, __pListModel(null)
, __pProviderAdaptor(null)
- , __topMargin(0)
- , __bottomMargin(0)
- , __leftMargin(0)
+ , __topMargin(0.0f)
+ , __bottomMargin(0.0f)
+ , __leftMargin(0.0f)
, __modelInitialized(false)
, __firstDrawnFlag(true)
, __statusChangedFlag(true)
, __sweepOccured(false)
, __sweptItemPosition()
, __reservedScrollItemAlignment(TABLE_VIEW_SCROLL_ITEM_ALIGNMENT_TOP)
- , __firstTouchMoved(0)
+ , __firstTouchMoved(false)
, __pReorderScrollTimer(null)
, __reorderInfo()
- , __itemTotalHeight(0)
+ , __itemTotalHeight(0.0f)
+ , __pCapturedItemVisualElement(null)
, __pFastScrollTimer(null)
, __isFastScrollTimerEnabled(false)
, __scrollHeightOnFlickStarted(0)
delete __pFastScrollTimer;
__pFastScrollTimer = null;
+
+ if (__pCapturedItemVisualElement)
+ {
+ GetView()->GetVisualElement()->DetachChild(*__pCapturedItemVisualElement);
+ __pCapturedItemVisualElement->Destroy();
+ }
+ __pCapturedItemVisualElement = null;
}
result
currentItemPos = firstLoadedItemPos;
- //while ((positionY > scrollPosition) && GetPreviousItemPosition(currentItemPos, currentItemPos))
while (!_FloatCompareLE(positionY, scrollPosition) && GetPreviousItemPosition(currentItemPos, currentItemPos))
{
pItem = LoadItem(currentItemPos.groupIndex, currentItemPos.itemIndex);
return E_SUCCESS;
}
-
}
__firstDrawnFlag = false;
__pListModel->SetGroupExpandState(groupIndex, true);
- float groupTotalHeight = 0;
+ float groupTotalHeight = 0.0f;
int itemCount = GetItemCountAt(groupIndex);
- _IListItemCommon* pItem = null;
+ _TableViewItem* pItem = null;
for (int i = 0; i < itemCount; i++)
{
- pItem = __pListModel->GetItemFromTemporaryBuffer(groupIndex, i);
- groupTotalHeight += pItem->GetItemHeight(); // +++ check floating
+ pItem = static_cast<_TableViewItem*>(__pListModel->GetItemFromTemporaryBuffer(groupIndex, i));
+ groupTotalHeight += pItem->GetItemHeight();
}
AdjustClientAreaBounds(false, groupTotalHeight);
itemTag.groupIndex = groupIndex;
itemTag.itemIndex = -1;
+ __expandableItemTag.groupIndex = groupIndex;
+ __expandableItemTag.itemIndex = -1;
+
if (withAnimation)
{
_TableViewItem *pItem = FindItem(itemTag);
float startPosition = itemBounds.y + itemBounds.height;
float endPosition = startPosition + groupTotalHeight;
- if (endPosition > screenPosition + __pTableView->GetBoundsF().height)
+ if (!_FloatCompareLE(endPosition, screenPosition + __pTableView->GetBoundsF().height))
{
endPosition = screenPosition + __pTableView->GetBoundsF().height;
}
pAnimation->SetStartValue(Variant(startPosition));
pAnimation->SetEndValue(Variant(endPosition));
pAnimation->SetDuration(EXPAND_GROUP_ANIMATION_DURATION);
- __expandableItemTag.groupIndex = groupIndex;
- __expandableItemTag.itemIndex = -1;
pVisualElement->AddAnimation(animationName, *pAnimation);
}
else
{
- LoadItemsToBeVisible(itemTag);
- AttachNextItemsToBottom(itemTag);
- SetLoadedItemsVisibleInGroup(groupIndex, true);
-
- int currentGroupIndex = -1;
- int currentItemIndex = -1;
- GetBottomDrawnItemIndex(currentGroupIndex, currentItemIndex);
-
- int lastLoadedGroupIndex = -1;
- int lastLoadedItemIndex = -1;
- __pListModel->GetLastLoadedItemIndex(lastLoadedGroupIndex, lastLoadedItemIndex);
-
- for (int j = currentGroupIndex; j <= lastLoadedGroupIndex; j++)
- {
- int itemCount = GetItemCountAt(j);
-
- for (int i = -1; i < itemCount; i++)
- {
- if (i <= currentItemIndex && j == currentGroupIndex)
- {
- continue;
- }
-
- UnloadItem(j, i);
- }
- }
+ ExpandGroupAnimationFinished(false);
}
return E_SUCCESS;
float groupTotalHeight = 0;
int itemCount = GetItemCountAt(groupIndex);
- _IListItemCommon* pItem = null;
+ _TableViewItem* pItem = null;
for (int i = 0; i < itemCount; i++)
{
- pItem = __pListModel->GetItemFromTemporaryBuffer(groupIndex, i);
- groupTotalHeight += pItem->GetItemHeight(); // +++ check floating
+ pItem = static_cast<_TableViewItem*>(__pListModel->GetItemFromTemporaryBuffer(groupIndex, i));
+ groupTotalHeight += pItem->GetItemHeight();
}
if (groupIndex < itemTag.groupIndex || groupIndex > bottomTag.groupIndex)
itemTag.groupIndex = groupIndex;
itemTag.itemIndex = -1;
}
+ __expandableItemTag.groupIndex = itemTag.groupIndex;
+ __expandableItemTag.itemIndex = itemTag.itemIndex;
if(__firstDrawnFlag)
{
endPosition += itemBounds.height;
}
- if (endPosition > screenPosition + __pTableView->GetBoundsF().height)
+ if (!_FloatCompareLE(endPosition, screenPosition + __pTableView->GetBoundsF().height))
{
endPosition = screenPosition + __pTableView->GetBoundsF().height;
}
pAnimation->SetStartValue(Variant(endPosition));
pAnimation->SetEndValue(Variant(startPosition));
pAnimation->SetDuration(COLLAPSE_GROUP_ANIMATION_DURATION);
- __expandableItemTag.groupIndex = itemTag.groupIndex;
- __expandableItemTag.itemIndex = itemTag.itemIndex;
pVisualElement->AddAnimation(animationName, *pAnimation);
}
else
{
- TableViewItemTag nextTag = {groupIndex + 1, -1};
-
- if (itemTag.itemIndex != -1)
- {
- float itemPositionY = CalculateItemPositionY(nextTag.groupIndex, nextTag.itemIndex);
- _TableViewItem* pNextItem = LoadItem(nextTag.groupIndex, nextTag.itemIndex);
-
- FloatRectangle itemBounds = pNextItem->GetBoundsF();
- itemBounds.y = itemPositionY;
- pNextItem->SetBounds(itemBounds);
-
- AttachNextItemsToBottom(nextTag);
-
- _ScrollPanelPresenter::ScrollTo(itemPositionY);
- }
- else
- {
- AttachNextItemsToBottom(itemTag);
- }
-
- LoadItemsToBeVisible(nextTag);
- SetLoadedItemsVisibleInGroup(groupIndex, false);
+ CollapseGroupAnimationFinished(false);
}
AdjustClientAreaBounds(false, -groupTotalHeight);
return _ScrollPanelPresenter::ScrollToInternal(newScrollPosition);
}
-
void
_TableViewPresenter::LoadItemWithScrollPosition(float previousScrollPosition, float currentScrollPos)
{
StartFastScrollTimer();
}
}
- else if (scrollStyle != TABLE_VIEW_SCROLL_BAR_STYLE_FIXED)
+ else if (scrollStyle == TABLE_VIEW_SCROLL_BAR_STYLE_FIXED)
+ {
+ _Scroll* pScroll = __pTableView->GetScrollBar();
+
+ if (pScroll != null)
+ {
+ pScroll->SetScrollingEffectVisibility(false);
+ }
+ }
+ else
{
_ScrollPanelPresenter::FadeOutScrollBar();
}
void
_TableViewPresenter::SweepItem(float x)
{
- //if (x != 0.0f)
if (!_FloatCompare(x, 0.0f))
{
_TableViewItem* pItem = static_cast<_TableViewItem*>(__pListModel->LoadItem(__sweptItemTag.groupIndex, __sweptItemTag.itemIndex));
FloatRectangle itemBounds = pItem->GetBoundsF();
- if (GetItemHeight(itemTag) == itemBounds.height)
+ if (_FloatCompare(GetItemHeight(itemTag), itemBounds.height))
{
return false;
}
}
}
-
_TableViewItem*
_TableViewPresenter::GetTableViewItemFromControl(const _Control& source)
{
}
void
+_TableViewPresenter::ShowTableViewCapturedItem(int groupIndex, int itemIndex, float height)
+{
+ TableViewItemTag itemTag = {groupIndex, itemIndex};
+ _TableViewItem* pItem = FindItem(itemTag);
+
+ if ((pItem == null) || _FloatCompare(height, 0.0f))
+ {
+ return;
+ }
+
+ result r = E_SUCCESS;
+ Canvas* pCanvas = null;
+ FloatRectangle itemBounds = pItem->GetBoundsF();
+
+ bool visibleState = pItem->GetVisibleState();
+ pItem->SetVisibleState(true);
+ Bitmap* pBitmap = pItem->GetCapturedBitmapN(true);
+ pItem->SetVisibleState(visibleState);
+
+ if (pBitmap == null)
+ {
+ return;
+ }
+
+ if (__pCapturedItemVisualElement == null)
+ {
+ __pCapturedItemVisualElement = new (std::nothrow) _VisualElement();
+ SysTryCatch(NID_UI_CTRL, __pCapturedItemVisualElement != null, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] The memory is insufficient.");
+
+ r = __pCapturedItemVisualElement->Construct();
+ SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+
+ r = GetView()->GetVisualElement()->AttachChild(*__pCapturedItemVisualElement);
+ SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Failed to attach child to the control VisualElement.", GetErrorMessage(r));
+
+ __pCapturedItemVisualElement->SetSurfaceOpaque(false);
+ __pCapturedItemVisualElement->SetImplicitAnimationEnabled(false);
+ }
+
+ __pCapturedItemVisualElement->SetShowState(true);
+ __pCapturedItemVisualElement->SetBounds(FloatRectangle(itemBounds.x, itemBounds.y, itemBounds.width, height));
+
+ pCanvas = __pCapturedItemVisualElement->GetCanvasN();
+ SysTryCatch(NID_UI_CTRL, pCanvas != null, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] The memory is insufficient.");
+
+ pCanvas->SetBackgroundColor(Color(0, 0, 0, 0));
+ pCanvas->Clear();
+ pCanvas->DrawBitmap(FloatPoint(0.0f, 0.0f), *pBitmap);
+
+ delete pCanvas;
+ delete pBitmap;
+
+ return;
+
+CATCH:
+ delete pCanvas;
+ delete pBitmap;
+
+ __pCapturedItemVisualElement->Destroy();
+}
+
+void
_TableViewPresenter::SetLoadedItemsVisibleFromPosition(float position, bool visible)
{
_TableViewItem* pItem;
if (visible)
{
- pItem->SetVisibleState(visible);
- pItem->GetVisualElement()->SetZOrder(null, false);
-
- if (position < itemBounds.y + itemBounds.height)
+ if (_FloatCompareGE(position, itemBounds.y) && !_FloatCompareGE(position, itemBounds.y + itemBounds.height))
{
+ ShowTableViewCapturedItem(current.groupIndex, current.itemIndex, position - itemBounds.y);
+ pItem->SetVisibleState(false);
break;
}
+ else
+ {
+ pItem->SetVisibleState(true);
+ }
}
else
{
- if (position < itemBounds.y)
+ if (!_FloatCompareGE(position, itemBounds.y))
{
UnloadItem(current);
}
+ else if (_FloatCompareGE(position, itemBounds.y) && !_FloatCompareGE(position, itemBounds.y + itemBounds.height))
+ {
+ pItem->SetVisibleState(false);
+ ShowTableViewCapturedItem(current.groupIndex, current.itemIndex, position - itemBounds.y);
+ }
+ else
+ {
+ pItem->SetVisibleState(true);
+ }
}
}
}
}
void
+_TableViewPresenter::ExpandGroupAnimationFinished(bool completedNormally)
+{
+ if (completedNormally == false)
+ {
+ TableViewItemTag current;
+ TableViewItemTag next;
+
+ current.groupIndex = __expandableItemTag.groupIndex;
+ current.itemIndex = -1;
+
+ _TableViewItem* pNextItem = null;
+ _TableViewItem* pCurrentItem = null;
+ pCurrentItem = LoadItem(current.groupIndex, current.itemIndex);
+
+ if (pCurrentItem == null)
+ {
+ return;
+ }
+
+ FloatRectangle itemBounds;
+ FloatRectangle screenBounds = __pTableView->GetBoundsF();
+ float screenPosition = GetScrollPosition() + screenBounds.height;
+ float nextItemPositionY = pCurrentItem->GetBoundsF().y + pCurrentItem->GetBoundsF().height;
+
+ while (GetNextItemPosition(current, next))
+ {
+ if (_FloatCompareGE(screenPosition, nextItemPositionY))
+ {
+ pCurrentItem = LoadItem(current.groupIndex, current.itemIndex);
+ if (pCurrentItem == null)
+ {
+ break;
+ }
+ pNextItem = LoadItem(next.groupIndex, next.itemIndex);
+ if (pNextItem == null)
+ {
+ break;
+ }
+ pNextItem->SetVisibleState(true);
+ itemBounds = pNextItem->GetBoundsF();
+ itemBounds.y = pCurrentItem->GetBoundsF().y + pCurrentItem->GetBoundsF().height;
+ pNextItem->SetBounds(itemBounds);
+ nextItemPositionY = itemBounds.y + itemBounds.height;
+ }
+ else
+ {
+ UnloadItem(next.groupIndex, next.itemIndex);
+ }
+
+ current = next;
+ }
+ }
+ else
+ {
+ int currentGroupIndex = -1;
+ int currentItemIndex = -1;
+ GetBottomDrawnItemIndex(currentGroupIndex, currentItemIndex);
+
+ int lastLoadedGroupIndex = -1;
+ int lastLoadedItemIndex = -1;
+ __pListModel->GetLastLoadedItemIndex(lastLoadedGroupIndex, lastLoadedItemIndex);
+
+ for (int j = currentGroupIndex; j <= lastLoadedGroupIndex; j++)
+ {
+ int itemCount = GetItemCountAt(j);
+
+ for (int i = -1; i < itemCount; i++)
+ {
+ if (i <= currentItemIndex && j == currentGroupIndex)
+ {
+ continue;
+ }
+
+ UnloadItem(j, i);
+ }
+ }
+ }
+}
+
+void
+_TableViewPresenter::CollapseGroupAnimationFinished(bool completedNormally)
+{
+ if (completedNormally == false)
+ {
+ TableViewItemTag current;
+ TableViewItemTag next;
+
+ current.groupIndex = __expandableItemTag.groupIndex;
+ current.itemIndex = -1;
+
+ _TableViewItem* pCurrentItem = null;
+ int itemCountInGroup = __pListModel->GetItemCountInGroup(__expandableItemTag.groupIndex);
+
+ for (int i = 0; i < itemCountInGroup; i++)
+ {
+ UnloadItem(__expandableItemTag.groupIndex, i);
+ }
+
+ pCurrentItem = FindItem(current);
+ if (pCurrentItem == null)
+ {
+ SysTryReturnVoidResult(NID_UI_CTRL, pCurrentItem != null, E_SYSTEM, "[E_SYSTEM] A system error has been occurred.")
+ }
+
+ FloatRectangle itemBounds;
+ float nextItemPositionY = pCurrentItem->GetBoundsF().y + pCurrentItem->GetBoundsF().height;
+
+ FloatRectangle screenBounds = __pTableView->GetBoundsF();
+ float screenPosition = GetScrollPosition() + screenBounds.height;
+
+ while (GetNextItemPosition(current, next))
+ {
+ current = next;
+ if (_FloatCompareGE(screenPosition, nextItemPositionY))
+ {
+ pCurrentItem = LoadItem(current.groupIndex, current.itemIndex);
+ if (pCurrentItem == null)
+ {
+ break;
+ }
+
+ pCurrentItem->SetVisibleState(true);
+ itemBounds = pCurrentItem->GetBoundsF();
+ itemBounds.y = nextItemPositionY;
+ pCurrentItem->SetBounds(itemBounds);
+
+ nextItemPositionY = pCurrentItem->GetBoundsF().y + pCurrentItem->GetBoundsF().height;
+ }
+ else
+ {
+ UnloadItem(current.groupIndex, current.itemIndex);
+ }
+ }
+ }
+ else
+ {
+ float scrollPosition = GetScrollPosition();
+
+ int groupItemsHeight = 0;
+ _TableViewItem* pItem = null;
+ for (int i = 0; i < __expandableItemTag.itemIndex; i++)
+ {
+ pItem = static_cast<_TableViewItem*>(__pListModel->GetItemFromTemporaryBuffer(__expandableItemTag.groupIndex, i));
+ groupItemsHeight += pItem->GetItemHeight();
+ }
+
+ _TableViewItem* pTableViewItem = static_cast<_TableViewItem*>(__pListModel->GetItemFromTemporaryBuffer(__expandableItemTag.groupIndex, __expandableItemTag.itemIndex));
+ FloatRectangle itemBounds = pTableViewItem->GetBoundsF();
+ groupItemsHeight += (scrollPosition - itemBounds.y);
+
+ int currentGroupIndex = -1;
+ int currentItemIndex = -1;
+ GetTopDrawnItemIndex(currentGroupIndex, currentItemIndex);
+
+ int firstLoadedGroupIndex = -1;
+ int firstLoadedItemIndex = -1;
+ __pListModel->GetFirstLoadedItemIndex(firstLoadedGroupIndex, firstLoadedItemIndex);
+
+ for (int j = firstLoadedGroupIndex; j <= currentGroupIndex; j++)
+ {
+ int itemCount = GetItemCountAt(j);
+
+ for (int i = -1; i < itemCount; i++)
+ {
+ if (i >= currentItemIndex && j == currentGroupIndex)
+ {
+ break;
+ }
+
+ UnloadItem(j, i);
+ }
+ }
+
+ int itemCount = GetItemCountAt(__expandableItemTag.groupIndex);
+ for (int i = 0; i < itemCount; i++)
+ {
+ UnloadItem(__expandableItemTag.groupIndex, i);
+ }
+ }
+}
+
+void
_TableViewPresenter::OnVisualElementAnimationStarted(const Tizen::Ui::Animations::VisualElementAnimation& animation, const Tizen::Base::String& keyName, Tizen::Ui::Animations::VisualElement& target)
{
if (keyName == L"REMOVE_ITEM_ANIMATION")
{
__scrollHeightOnFlickStarted = GetScrollAreaBounds().height;
__scrollPositionOnFlickStarted = GetScrollPosition();
-
}
_ScrollPanelPresenter::OnVisualElementAnimationStarted(animation, keyName, target);
}
else if (keyName == L"EXPAND_GROUP_ANIMATION")
{
- if (completedNormally == false)
+ if (__pCapturedItemVisualElement)
{
- TableViewItemTag current;
- TableViewItemTag next;
-
- current.groupIndex = __expandableItemTag.groupIndex;
- current.itemIndex = -1;
-
- _TableViewItem* pNextItem = null;
- _TableViewItem* pCurrentItem = null;
- pCurrentItem = LoadItem(current.groupIndex, current.itemIndex);
-
- if (pCurrentItem == null)
- {
- return;
- }
-
- FloatRectangle itemBounds;
- FloatRectangle screenBounds = __pTableView->GetBoundsF();
- float screenPosition = GetScrollPosition() + screenBounds.height;
- float nextItemPositionY = pCurrentItem->GetBoundsF().y + pCurrentItem->GetBoundsF().height;
-
- while (GetNextItemPosition(current, next))
- {
- if (screenPosition >= nextItemPositionY)
- {
- pCurrentItem = LoadItem(current.groupIndex, current.itemIndex);
- if (pCurrentItem == null)
- {
- break;
- }
- pNextItem = LoadItem(next.groupIndex, next.itemIndex);
- if (pNextItem == null)
- {
- break;
- }
-
- itemBounds = pNextItem->GetBoundsF();
- itemBounds.y = pCurrentItem->GetBoundsF().y + pCurrentItem->GetBoundsF().height;
- pNextItem->SetBounds(itemBounds);
- nextItemPositionY = itemBounds.y + itemBounds.height;
- }
- else
- {
- UnloadItem(next.groupIndex, next.itemIndex);
- }
-
- current = next;
- }
+ __pCapturedItemVisualElement->SetShowState(false);
}
- else
- {
- int currentGroupIndex = -1;
- int currentItemIndex = -1;
- GetBottomDrawnItemIndex(currentGroupIndex, currentItemIndex);
-
- int lastLoadedGroupIndex = -1;
- int lastLoadedItemIndex = -1;
- __pListModel->GetLastLoadedItemIndex(lastLoadedGroupIndex, lastLoadedItemIndex);
- for (int j = currentGroupIndex; j <= lastLoadedGroupIndex; j++)
- {
- int itemCount = GetItemCountAt(j);
-
- for (int i = -1; i < itemCount; i++)
- {
- if (i <= currentItemIndex && j == currentGroupIndex)
- {
- continue;
- }
-
- UnloadItem(j, i);
- }
- }
- }
+ ExpandGroupAnimationFinished(completedNormally);
return;
}
else if (keyName == L"COLLAPSE_GROUP_ANIMATION")
{
- if (completedNormally == false)
- {
- TableViewItemTag current;
- TableViewItemTag next;
-
- current.groupIndex = __expandableItemTag.groupIndex;
- current.itemIndex = -1;
-
- _TableViewItem* pCurrentItem = null;
- int itemCountInGroup = __pListModel->GetItemCountInGroup(__expandableItemTag.groupIndex);
-
- for (int i = 0; i < itemCountInGroup; i++)
- {
- UnloadItem(__expandableItemTag.groupIndex, i);
- }
-
- pCurrentItem = FindItem(current);
- if (pCurrentItem == null)
- {
- SysTryReturnVoidResult(NID_UI_CTRL, pCurrentItem != null, E_SYSTEM, "[E_SYSTEM] A system error has been occurred.")
- }
-
- FloatRectangle itemBounds;
- float nextItemPositionY = pCurrentItem->GetBoundsF().y + pCurrentItem->GetBoundsF().height;
-
- FloatRectangle screenBounds = __pTableView->GetBoundsF();
- float screenPosition = GetScrollPosition() + screenBounds.height;
-
- while (GetNextItemPosition(current, next))
- {
- current = next;
- if (screenPosition >= nextItemPositionY)
- {
- pCurrentItem = LoadItem(current.groupIndex, current.itemIndex);
- if (pCurrentItem == null)
- {
- break;
- }
-
- itemBounds = pCurrentItem->GetBoundsF();
- itemBounds.y = nextItemPositionY;
- pCurrentItem->SetBounds(itemBounds);
-
- nextItemPositionY = pCurrentItem->GetBoundsF().y + pCurrentItem->GetBoundsF().height;
- }
- else
- {
- UnloadItem(current.groupIndex, current.itemIndex);
- }
- }
- }
- else
+ if (__pCapturedItemVisualElement)
{
- float scrollPosition = GetScrollPosition();
-
- int groupItemsHeight = 0;
- _IListItemCommon* pItem = null;
- for (int i = 0; i < __expandableItemTag.itemIndex; i++)
- {
- pItem = __pListModel->GetItemFromTemporaryBuffer(__expandableItemTag.groupIndex, i);
- groupItemsHeight += pItem->GetItemHeight();
- }
-
- _TableViewItem* pTableViewItem = static_cast<_TableViewItem*>(__pListModel->GetItemFromTemporaryBuffer(__expandableItemTag.groupIndex, __expandableItemTag.itemIndex));
- FloatRectangle itemBounds = pTableViewItem->GetBoundsF();
- groupItemsHeight += (scrollPosition - itemBounds.y);
-
- int currentGroupIndex = -1;
- int currentItemIndex = -1;
- GetTopDrawnItemIndex(currentGroupIndex, currentItemIndex);
-
- int firstLoadedGroupIndex = -1;
- int firstLoadedItemIndex = -1;
- __pListModel->GetFirstLoadedItemIndex(firstLoadedGroupIndex, firstLoadedItemIndex);
-
- for (int j = firstLoadedGroupIndex; j <= currentGroupIndex; j++)
- {
- int itemCount = GetItemCountAt(j);
-
- for (int i = -1; i < itemCount; i++)
- {
- if (i >= currentItemIndex && j == currentGroupIndex)
- {
- break;
- }
-
- UnloadItem(j, i);
- }
- }
-
- int itemCount = GetItemCountAt(__expandableItemTag.groupIndex);
- for (int i = 0; i < itemCount; i++)
- {
- UnloadItem(__expandableItemTag.groupIndex, i);
- }
+ __pCapturedItemVisualElement->SetShowState(false);
}
+ CollapseGroupAnimationFinished(completedNormally);
return;
}