From 57420a0a1fe26a93fbf63acce8a1a6048c9768e1 Mon Sep 17 00:00:00 2001 From: minkyu kim Date: Thu, 2 May 2013 22:54:08 +0900 Subject: [PATCH] N_SE-37092 : resetTouchInfo if toucedWindow is null, pointId is invalid, ontouchreleased Change-Id: Ibd6f7d8ce38516c91580cb9bdc4abd8600918d4e --- src/ui/FUi_EflUiEventManager.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/ui/FUi_EflUiEventManager.cpp b/src/ui/FUi_EflUiEventManager.cpp index b635bc6..734e448 100644 --- a/src/ui/FUi_EflUiEventManager.cpp +++ b/src/ui/FUi_EflUiEventManager.cpp @@ -557,6 +557,22 @@ public: if (pointId == INVALID_POINT_ID) { + if (status == _TOUCH_RELEASED) + { + _ControlManager* pControlManager = _ControlManager::GetInstance(); + SysTryReturnVoidResult(NID_UI, pControlManager, E_SYSTEM, "[E_SYSTEM] A system error occurred."); + + _Window* pWindow = pControlManager->GetTouchedWindow(); + if (pWindow == null) + { + _TouchManager* pTouchManager = _TouchManager::GetInstance(); + if (pTouchManager) + { + pTouchManager->ResetTouchInfo(); + SysLog(NID_UI, "pWindow is null, ResetTouchInfo"); + } + } + } SetLastResult(E_INVALID_CONDITION); return; } -- 2.7.4