Modified a logic for drawing item divider.
authoryouseong.ji <youseong.ji@samsung.com>
Mon, 10 Jun 2013 07:09:28 +0000 (16:09 +0900)
committeryouseong.ji <youseong.ji@samsung.com>
Mon, 10 Jun 2013 07:09:28 +0000 (16:09 +0900)
Change-Id: Ice70eee1a45b1ec3ec105d3507b035393351a5d6
Signed-off-by: youseong.ji <youseong.ji@samsung.com>
src/ui/controls/FUiCtrl_TableViewItem.cpp

index eaace57..66a0fdd 100644 (file)
@@ -3133,12 +3133,15 @@ _TableViewItem::DrawItemDivider(void)
        if(     __drawingStatus == TABLE_VIEW_ITEM_DRAWING_STATUS_PRESSED ||
                __drawingStatus == TABLE_VIEW_ITEM_DRAWING_STATUS_HIGHLIGHTED)
        {
-               if(__itemType != TABLE_VIEW_ITEM_TYPE_TITLE)
+               if(__colorItemBg[TABLE_VIEW_ITEM_DRAWING_STATUS_NORMAL] != __colorItemBg[TABLE_VIEW_ITEM_DRAWING_STATUS_PRESSED])
                {
-                       __pItemDivider->SetVisibleState(false);
-               }
+                       if(__itemType != TABLE_VIEW_ITEM_TYPE_TITLE)
+                       {
+                               __pItemDivider->SetVisibleState(false);
+                       }
 
-               __pItemTopDivider->SetVisibleState(false);
+                       __pItemTopDivider->SetVisibleState(false);
+               }
        }
 
        if (__itemType == TABLE_VIEW_ITEM_TYPE_TITLE)