From 7414854b22835e6a8a06db69a119059196104a36 Mon Sep 17 00:00:00 2001 From: "kyeongwoo.lee" Date: Wed, 3 Jul 2013 15:03:54 +0900 Subject: [PATCH] Adding a function to get the provider count(1) Change-Id: Ib87d2edfec26447e28cbe4737680d03ff4b3326e Signed-off-by: kyeongwoo.lee --- src/FShell_AppWidgetProviderManagerImpl.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/FShell_AppWidgetProviderManagerImpl.cpp b/src/FShell_AppWidgetProviderManagerImpl.cpp index 3a94112..c2aada0 100644 --- a/src/FShell_AppWidgetProviderManagerImpl.cpp +++ b/src/FShell_AppWidgetProviderManagerImpl.cpp @@ -444,12 +444,12 @@ _AppWidgetProviderManagerImpl::HandleRequest(const String& operationId, const IM } else { - HandleAppWidgetRequest(operationId, pArgs); - // reset the timer for life duration _ServiceAppImpl* pServiceAppImpl = _ServiceAppImpl::GetInstance(); SysAssert(pServiceAppImpl); pServiceAppImpl->ResetLifeDurationTimer(); + + HandleAppWidgetRequest(operationId, pArgs); } return E_SUCCESS; @@ -481,6 +481,11 @@ _AppWidgetProviderManagerImpl::HandleAppWidgetRequest(const String& operationId, r = CreateAppWidget(*pInstanceId, operationId, pArgs); SysTryReturnResult(NID_SHELL, !IsFailed(r), E_FAILURE, "[E_FAILURE] Failed to execute CreateAppWidget."); } + + // reset the timer for life duration + _ServiceAppImpl* pServiceAppImpl = _ServiceAppImpl::GetInstance(); + SysAssert(pServiceAppImpl); + pServiceAppImpl->ResetLifeDurationTimer(); } if (operationId == APPWIDGET_ON_RESIZE) -- 2.7.4