Modified sweep related APIs on _ListViewImpl/_GroupedListViewImpl
authorSuhwan_Park <suhwan0927.park@samsung.com>
Wed, 22 May 2013 04:23:28 +0000 (13:23 +0900)
committerSuhwan_Park <suhwan0927.park@samsung.com>
Wed, 22 May 2013 05:08:22 +0000 (14:08 +0900)
Change-Id: I5f8c04ede3d5a13424130a4cea4207fcd01a2aa4
Signed-off-by: Suhwan_Park <suhwan0927.park@samsung.com>
src/ui/controls/FUiCtrl_GroupedListViewImpl.cpp
src/ui/controls/FUiCtrl_ListViewImpl.cpp
src/ui/inc/FUiCtrl_GroupedListViewImpl.h

index a85aaa1..a635e53 100644 (file)
@@ -1085,14 +1085,9 @@ _GroupedListViewImpl::RefreshList(int groupIndex, int itemIndex, ListRefreshType
 
        if (type == LIST_REFRESH_TYPE_ITEM_MODIFY)
        {
-               int sweepGroupIndex = -1;
-               int sweepItemIndex = -1;
-
-               GetCore().GetSweepItemIndex(sweepGroupIndex, sweepItemIndex);
-
-               if ((sweepGroupIndex == groupIndex) && (sweepItemIndex == itemIndex))
+               if (IsContextItemOpened(groupIndex, itemIndex))
                {
-                       GetCore().ResetSweepItem();
+                       CloseContextItem(groupIndex, itemIndex);
                }
 
                int topGroupIndex = -1;
@@ -1665,7 +1660,7 @@ _GroupedListViewImpl::OnListViewContextItemStateChanged(_Control& source, int gr
 {
        if (__pListItemEvent != null)
        {
-               GetCore().ResetSweepItem();
+               CloseContextItem(groupIndex, itemIndex);
 
                _ListViewItem* pListViewItem = static_cast<_ListViewItem*>(GetCore().FindItem(groupIndex, itemIndex));
 
index 2e192b2..0a6665f 100644 (file)
@@ -1065,14 +1065,9 @@ _ListViewImpl::RefreshList(int index, ListRefreshType type)
 
        if (type == LIST_REFRESH_TYPE_ITEM_MODIFY)
        {
-               int sweepGroupIndex = -1;
-               int sweepItemIndex = -1;
-
-               GetCore().GetSweepItemIndex(sweepGroupIndex, sweepItemIndex);
-
-               if ((sweepGroupIndex == 0) && (sweepItemIndex == index))
+               if (IsContextItemOpened(index))
                {
-                       GetCore().ResetSweepItem();
+                       CloseContextItem(index);
                }
 
                int topGroupIndex = -1;
@@ -1588,7 +1583,7 @@ _ListViewImpl::OnListViewContextItemStateChanged(_Control& source, int groupInde
 {
        if (__pListItemEvent != null)
        {
-               GetCore().ResetSweepItem();
+               CloseContextItem(itemIndex);
 
                _ListViewItem* pListViewItem = static_cast<_ListViewItem*>(GetCore().FindItem(0, itemIndex));
 
index 901c13c..e87cd80 100644 (file)
@@ -283,7 +283,6 @@ private:
        bool __redrawListView;
        bool __isOrientationChanged;
        bool __needReloadItems;
-       _ListViewItem* __pItemNeedsLazyDeletion;
 
        class _GroupedListViewPropagatedTouchEventListener;
        _GroupedListViewPropagatedTouchEventListener* __pPropagatedTouchEventListener;