change minimum value of update-period attribute to 1800.0 second
authorYunchan Cho <yunchan.cho@samsung.com>
Fri, 24 May 2013 01:16:09 +0000 (10:16 +0900)
committerYunchan Cho <yunchan.cho@samsung.com>
Wed, 29 May 2013 06:28:10 +0000 (15:28 +0900)
[Issue#] N/A
[Problem] checking minimum value of update-period is not correct.
[Cause] Core specification of Tizen 2.1 regarding update-period has been changed
[Solution] parser code and schema file is changed to have minimum value of update-period as 1800.0 second

Change-Id: I533d22ac01de96ab820d82a6a711210e8cbb97c5

src/configuration_parser/widget_parser.cpp

index 3ad631f..3bc0167 100644 (file)
@@ -2058,9 +2058,9 @@ class AppWidgetParser : public ElementParser
                     || *endptr != '\0') {
                 ThrowMsg(Exception::ParseError,
                     "update-period attribute of app-widget element should be a number - ignoring. current value: " << m_updatePeriod);
-            } else if (updatePeriod < 60.0) {
-                LogDebug("update-period attribute of app-widget element shouldn't be less than 60.0 - changed to 60 from value: " << m_updatePeriod);
-                m_updatePeriod = L"60.0";
+            } else if (updatePeriod < 1800.0) {
+                LogDebug("update-period attribute of app-widget element shouldn't be less than 1800.0 - changed to 1800 from value: " << m_updatePeriod);
+                m_updatePeriod = L"1800.0";
             }
         }