[Application] Fix application info bug
authorKisub Song <kisubs.song@samsung.com>
Wed, 22 Aug 2012 09:32:42 +0000 (18:32 +0900)
committerKisub Song <kisubs.song@samsung.com>
Thu, 23 Aug 2012 10:04:58 +0000 (19:04 +0900)
[Issue#] N/A
[Problem] ApplicationInformation shows wrong installDate and size
[Cause] Bug
[Solution] Fix bug

src/standards/Tizen/Application/JSApplicationInformation.cpp

index a292da1..4fe55ac 100755 (executable)
@@ -175,9 +175,9 @@ JSValueRef JSApplicationInformation::getProperty(JSContextRef context,
                } else if (JSStringIsEqualToUTF8CString(propertyName, TIZEN_APPLICATION_INFORMATION_SHOW)) {
                        return converter.toJSValueRef(privateData->getShow());
                } else if (JSStringIsEqualToUTF8CString(propertyName, TIZEN_APPLICATION_INFORMATION_INSTALL_DATE)) {
-                       return converter.toJSValueRef(privateData->getInstallSize());
+                       return converter.toJSValueRef(privateData->getInstallDate());
                } else if (JSStringIsEqualToUTF8CString(propertyName, TIZEN_APPLICATION_INFORMATION_INSTALL_SIZE)) {
-                       return converter.toJSValueRef(privateData->getInstallSize());
+                       return converter.toJSValueRefLong(privateData->getInstallSize());
                }
        } Catch(WrtDeviceApis::Commons::Exception) {
         LogError("Exception: " << _rethrown_exception.GetMessage());