Adding a function to get the provider count(1)
authorkyeongwoo.lee <kyeongwoo.lee@samsung.com>
Wed, 3 Jul 2013 06:03:54 +0000 (15:03 +0900)
committerkyeongwoo.lee <kyeongwoo.lee@samsung.com>
Wed, 3 Jul 2013 06:04:27 +0000 (15:04 +0900)
Change-Id: Ib87d2edfec26447e28cbe4737680d03ff4b3326e
Signed-off-by: kyeongwoo.lee <kyeongwoo.lee@samsung.com>
src/FShell_AppWidgetProviderManagerImpl.cpp

index 3a94112..c2aada0 100644 (file)
@@ -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)