Fix wrong description 61/182761/1
authorSukHyung, Kang <shine.kang@samsung.com>
Thu, 28 Jun 2018 00:53:03 +0000 (09:53 +0900)
committerSukHyung, Kang <shine.kang@samsung.com>
Thu, 28 Jun 2018 00:53:03 +0000 (09:53 +0900)
Change-Id: I36090136152e4d8a9e29ea1687f6725db2e3da94
Signed-off-by: SukHyung, Kang <shine.kang@samsung.com>
watchface-complication-provider/include/watchface-complication-provider.h
watchface-complication/include/watchface-complication.h

index 1253be7..f12fb29 100644 (file)
@@ -236,7 +236,7 @@ void app_control(app_control_h app_control, void *data)
 {
        bool is_editing;
 
-       watchface_complication_provider_setup_is_editing(handle, &is_editing);
+       watchface_complication_provider_setup_is_editing(app_control, &is_editing);
        if (is_editing) {
                watchface_complication_provider_setup_get_context(handle, &b);
                // Draw complication provider app's current setting state.
@@ -271,7 +271,7 @@ void app_control(app_control_h app_control, void *data)
 {
        bundle *b;
 
-       watchface_complication_provider_setup_get_context(handle, &b);
+       watchface_complication_provider_setup_get_context(app_control, &b);
        // Draw complication provider app's current setting state.
 }
  * @endcode
index 1c345d8..4325ba8 100644 (file)
@@ -448,11 +448,8 @@ void _on_complication_update(int complication_id,
                const bundle *data, void *user_data)
 {
        char *value;
-       watchface_complication_type_e type;
 
-       watchface_complication_data_get_type(data, &type);
-       if (type == WATCHFACE_COMPLICATION_TYPE_LONG_TEXT)
-               watchface_complication_data_get_long_text(data, &value);
+       watchface_complication_data_get_title(data, &value);
 }
  * @endcode
  */