Fix type mismatch (#789)
authorHyunho Kang <hhstark.kang@samsung.com>
Fri, 12 Apr 2019 08:29:13 +0000 (17:29 +0900)
committerpjh9216 <jh9216.park@samsung.com>
Fri, 12 Apr 2019 08:29:13 +0000 (17:29 +0900)
* Add Tizen.Applications.WatchfaceComplication.dll

Signed-off-by: hyunho <hhstark.kang@samsung.com>
* Remove unused using

Signed-off-by: hyunho <hhstark.kang@samsung.com>
* Fix wrong dispose sequence

Signed-off-by: hyunho <hhstark.kang@samsung.com>
* Fix wrong assignment

Validation is already done and initialize should be done without validation

Signed-off-by: hyunho <hhstark.kang@samsung.com>
* Fix register callback bug

Signed-off-by: hyunho <hhstark.kang@samsung.com>
* Modify field that is only assigned in constructor

Field that is only assigned in constructor should be readonly

Signed-off-by: hyunho <hhstark.kang@samsung.com>
* Fix type mismatch

Signed-off-by: hyunho <hhstark.kang@samsung.com>
src/Tizen.Applications.WatchfaceComplication/Tizen.Applications/ComplicationData.cs [changed mode: 0755->0644]
src/Tizen.Applications.WatchfaceComplication/Tizen.Applications/Interop/Interop.WatchfaceComplication.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index d497adf..242081c
@@ -217,7 +217,7 @@ namespace Tizen.Applications.WatchfaceComplication
                     Interop.WatchfaceComplication.ProviderSetExtraData(sharedData, _extraData);
                     break;
                 case ComplicationTypes.Time:
-                    err = Interop.WatchfaceComplication.ProviderSetTimestamp(sharedData, _timestamp);
+                    err = Interop.WatchfaceComplication.ProviderSetTimestamp(sharedData, (Int32)_timestamp);
                     Interop.WatchfaceComplication.ProviderSetIconPath(sharedData, _iconPath);
                     Interop.WatchfaceComplication.ProviderSetExtraData(sharedData, _extraData);
                     break;
old mode 100755 (executable)
new mode 100644 (file)
index e38bf7d..f11af8a
@@ -190,7 +190,7 @@ internal static partial class Interop
         internal static extern ComplicationError ProviderSetLongText(IntPtr sharedData, string longText);
 
         [DllImport(Libraries.ComplicationProvider, EntryPoint = "watchface_complication_provider_data_set_timestamp")]
-        internal static extern ComplicationError ProviderSetTimestamp(IntPtr sharedData, long timestamp);
+        internal static extern ComplicationError ProviderSetTimestamp(IntPtr sharedData, Int32 timestamp);
 
         [DllImport(Libraries.ComplicationProvider, EntryPoint = "watchface_complication_provider_data_set_image_path")]
         internal static extern ComplicationError ProviderSetImagePath(IntPtr sharedData, string imagePath);