enable the code to check life duration 57/14857/1
authorkyeongwoo.lee <kyeongwoo.lee@samsung.com>
Mon, 2 Dec 2013 11:07:35 +0000 (20:07 +0900)
committerKeebong <keebong.bahn@samsung.com>
Mon, 13 Jan 2014 09:02:19 +0000 (18:02 +0900)
Change-Id: Ibf130ec529e571534b6167a2b13a523753e8d294
Signed-off-by: kyeongwoo.lee <kyeongwoo.lee@samsung.com>
src/FShell_AppWidgetProviderManagerImpl.cpp

index 838daa1..3e9d542 100644 (file)
@@ -560,7 +560,7 @@ _AppWidgetProviderManagerImpl::ValidateAppAttribute(void)
        const wchar_t USE_UI_VAL_TRUE[] = L"True";
        const wchar_t LIFE_DURATION_KEY[] = L"LifeDuration";
        const wchar_t AUTO_RESTART_KEY[] = L"AutoRestart";
-//     const int LIFE_DURATION_MIN = 30000;
+       const int LIFE_DURATION_MIN = 30000;
 
        static result res = E_UNKNOWN;
        if (res != E_UNKNOWN)
@@ -586,7 +586,7 @@ _AppWidgetProviderManagerImpl::ValidateAppAttribute(void)
        int lifeDuration = 0;
        result r = Integer::Parse(lifeDurationValue, lifeDuration);
        SysTryReturnResult(NID_SHELL, !IsFailed(r), E_INVALID_OPERATION, "Failed to parse '%ls' attribute for the ServiceApp in package information.", LIFE_DURATION_KEY);
-       //SysTryReturnResult(NID_SHELL, lifeDuration <= LIFE_DURATION_MIN, E_INVALID_OPERATION, "%ls attribute value should be less than '%d' to be an application that providing AppWidget, but value is %d", LIFE_DURATION_KEY, LIFE_DURATION_MIN, lifeDuration );
+       SysTryReturnResult(NID_SHELL, lifeDuration <= LIFE_DURATION_MIN, E_INVALID_OPERATION, "%ls attribute value should be less than '%d' to be an application that providing AppWidget, but value is %d", LIFE_DURATION_KEY, LIFE_DURATION_MIN, lifeDuration );
 
        // AutoRestart
        String autoRestart = pInfoImpl->GetAppFeature(AUTO_RESTART_KEY);