Fixed the prevent issues(48919, 48916, 48491) about ListView/GroupedListView
authorHyeonmi Kim <hm_85.kim@samsung.com>
Tue, 2 Apr 2013 05:55:00 +0000 (14:55 +0900)
committerHyeonmi Kim <hm_85.kim@samsung.com>
Wed, 3 Apr 2013 01:08:05 +0000 (10:08 +0900)
Change-Id: Ied94f01700fec0a0b1ec07a9eaf7d11bb613339c
Signed-off-by: Hyeonmi Kim <hm_85.kim@samsung.com>
src/ui/controls/FUiCtrl_GroupedListViewImpl.cpp
src/ui/controls/FUiCtrl_ListViewImpl.cpp
src/ui/controls/FUiCtrl_ListViewTouchEventHandler.cpp

index 67b9c02..721e50f 100644 (file)
@@ -1308,7 +1308,7 @@ _GroupedListViewImpl::OnScrollPositionChanged(_Control& source, float scrollPosi
        {
                _ScrollEventArg* pEventArg = _ScrollEventArg::GetScrollEventArgN(GetPublic(), scrollPosition);
                result r = GetLastResult();
-               SysTryReturnVoidResult(NID_UI_CTRL, (r == E_SUCCESS), r, "[%s] Propagating.", GetErrorMessage(r));
+               SysTryReturnVoidResult(NID_UI_CTRL, (pEventArg != null), r, "[%s] Propagating.", GetErrorMessage(r));
 
                __pScrollEvent->Fire(*pEventArg);
        }
index c4d3a6f..cba5892 100644 (file)
@@ -1185,7 +1185,7 @@ _ListViewImpl::OnScrollPositionChanged(_Control& source, float scrollPosition)
        {
                _ScrollEventArg* pEventArg = _ScrollEventArg::GetScrollEventArgN(GetPublic(), scrollPosition);
                result r = GetLastResult();
-               SysTryReturnVoidResult(NID_UI_CTRL, (r == E_SUCCESS), r, "[%s] Propagating.", GetErrorMessage(r));
+               SysTryReturnVoidResult(NID_UI_CTRL, (pEventArg != null), r, "[%s] Propagating.", GetErrorMessage(r));
 
                __pScrollEvent->Fire(*pEventArg);
        }
index 309e0c0..e136da9 100644 (file)
@@ -74,11 +74,11 @@ _ListViewTouchEventHandler::ProcessTouchEventListener(const _TouchInfo& touchInf
 
        if (__style == LIST_VIEW_STYLE_SIMPLE)
        {
-               filtered = dynamic_cast<_ListViewImpl*>(&__impl)->GetInputEventConsumeState();
+               filtered = static_cast<_ListViewImpl*>(&__impl)->GetInputEventConsumeState();
        }
        else if (__style == LIST_VIEW_STYLE_GROUPED)
        {
-               filtered = dynamic_cast<_GroupedListViewImpl*>(&__impl)->GetInputEventConsumeState();
+               filtered = static_cast<_GroupedListViewImpl*>(&__impl)->GetInputEventConsumeState();
        }
 
        return filtered;