, __prevTouchPos(-1.0f, -1.0f)
, __pTextSlideTimer(null)
, __pAccessibilityElement(null)
+ , __isContextItemListenerActivated(false)
{
GET_COLOR_CONFIG(TABLEVIEW::ITEM_DESCRIPTION_TEXT_NORMAL, __descriptionTextColor);
_ListViewContextItem* pContextItem = static_cast<_ListViewContextItem*>(GetContextItem());
if ((pContextItem != null) && (__pContextItemEventListener != null))
{
- pContextItem->RemoveContextItemEventListener(*__pContextItemEventListener);
+ if (__isContextItemListenerActivated)
+ {
+ pContextItem->RemoveContextItemEventListener(*__pContextItemEventListener);
+ }
__pContextItemEventListener = null;
+ __isContextItemListenerActivated = false;
}
_AccessibilityContainer* pContainer = GetAccessibilityContainer();
if (activate)
{
pContextItem->AddContextItemEventListener(*__pContextItemEventListener);
+ __isContextItemListenerActivated = true;
}
else
{
pContextItem->RemoveContextItemEventListener(*__pContextItemEventListener);
- __pContextItemEventListener = null;
+ __isContextItemListenerActivated = false;
}
}
}
_IActionEventListener* __pContextItemEventListener;
Tizen::Ui::_AccessibilityElement* __pAccessibilityElement;
+
+ bool __isContextItemListenerActivated;
}; // _ListViewItem
}}} // Tizen::Ui::Controls