diff options
author | seungha.son <seungha.son@samsung.com> | 2017-01-06 15:45:20 +0900 |
---|---|---|
committer | seungha.son <seungha.son@samsung.com> | 2017-01-06 16:29:53 +0900 |
commit | 47f472de2f3c672ce26e97e84db93613da67fdab (patch) | |
tree | ae514283ac68af59e7c45df803af20a71251d034 | |
parent | 170cbc12f31d2bddc1eaf64b46dca7b2e218e7fc (diff) | |
download | notification-47f472de2f3c672ce26e97e84db93613da67fdab.tar.gz notification-47f472de2f3c672ce26e97e84db93613da67fdab.tar.bz2 notification-47f472de2f3c672ce26e97e84db93613da67fdab.zip |
Fix notification query
- If data-provider-master send a notification handle to the application
except for the uid column in notification db, the uid is initialized to 0.
which is a problem.
Signed-off-by: seungha.son <seungha.son@samsung.com>
Change-Id: I7b174ccdb965fa49d1ef25e75d94ed3f8e8278a2
-rwxr-xr-x | src/notification_noti.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/notification_noti.c b/src/notification_noti.c index 1bcc46e..9a2d8d1 100755 --- a/src/notification_noti.c +++ b/src/notification_noti.c @@ -604,6 +604,7 @@ static void _notification_noti_populate_from_stmt(sqlite3_stmt *stmt, notificati noti->timeout = sqlite3_column_int(stmt, col++); noti->text_input_max_length = sqlite3_column_int(stmt, col++); noti->event_flag = sqlite3_column_int(stmt, col++); + noti->uid = sqlite3_column_int(stmt, col++); noti->app_icon_path = NULL; noti->app_name = NULL; @@ -1054,7 +1055,7 @@ EXPORT_API int notification_noti_get_by_priv_id(notification_h noti, char *pkgna "b_event_handler_click_on_icon, b_event_handler_click_on_thumbnail, b_event_handler_click_on_text_input_button, " "sound_type, sound_path, vibration_type, vibration_path, led_operation, led_argb, led_on_ms, led_off_ms, " "flags_for_property, display_applist, progress_size, progress_percentage, ongoing_flag, ongoing_value_type, " - "ongoing_current, ongoing_duration, auto_remove, default_button_index, timeout, text_input_max_length, event_flag " + "ongoing_current, ongoing_duration, auto_remove, default_button_index, timeout, text_input_max_length, event_flag, uid " "from noti_list "; if (pkgname != NULL && strlen(pkgname) != 0) @@ -1161,7 +1162,7 @@ EXPORT_API int notification_noti_get_by_tag(notification_h noti, char *pkgname, "b_event_handler_click_on_icon, b_event_handler_click_on_thumbnail, b_event_handler_click_on_text_input_button, " "sound_type, sound_path, vibration_type, vibration_path, led_operation, led_argb, led_on_ms, led_off_ms, " "flags_for_property, display_applist, progress_size, progress_percentage, ongoing_flag, ongoing_value_type, " - "ongoing_current, ongoing_duration, auto_remove, default_button_index, timeout, text_input_max_length, event_flag " + "ongoing_current, ongoing_duration, auto_remove, default_button_index, timeout, text_input_max_length, event_flag, uid " "from noti_list where tag = ? and uid = ?", -1, &stmt, NULL); if (ret != SQLITE_OK) { NOTIFICATION_ERR("Error: %s\n", sqlite3_errmsg(db)); @@ -1621,7 +1622,7 @@ EXPORT_API int notification_noti_get_grouping_list(notification_type_e type, "b_event_handler_click_on_icon, b_event_handler_click_on_thumbnail, b_event_handler_click_on_text_input_button, " "sound_type, sound_path, vibration_type, vibration_path, led_operation, led_argb, led_on_ms, led_off_ms, " "flags_for_property, display_applist, progress_size, progress_percentage, ongoing_flag, ongoing_value_type, " - "ongoing_current, ongoing_duration, auto_remove, default_button_index, timeout, text_input_max_length, event_flag " + "ongoing_current, ongoing_duration, auto_remove, default_button_index, timeout, text_input_max_length, event_flag, uid " "from noti_list where 1 > 0 "); if (status == VCONFKEY_TELEPHONY_SIM_INSERTED) { @@ -1723,7 +1724,7 @@ EXPORT_API int notification_noti_get_detail_list(const char *pkgname, "b_event_handler_click_on_icon, b_event_handler_click_on_thumbnail, b_event_handler_click_on_text_input_button, " "sound_type, sound_path, vibration_type, vibration_path, led_operation, led_argb, led_on_ms, led_off_ms, " "flags_for_property, display_applist, progress_size, progress_percentage, ongoing_flag, ongoing_value_type, " - "ongoing_current, ongoing_duration, auto_remove, default_button_index, timeout, text_input_max_length, event_flag " + "ongoing_current, ongoing_duration, auto_remove, default_button_index, timeout, text_input_max_length, event_flag, uid " "from noti_list "); if (priv_id == NOTIFICATION_PRIV_ID_NONE && group_id == NOTIFICATION_GROUP_ID_NONE) { @@ -2213,7 +2214,7 @@ EXPORT_API int notification_noti_get_package_template(notification_h noti, char "b_event_handler_click_on_icon, b_event_handler_click_on_thumbnail, b_event_handler_click_on_text_input_button, " "sound_type, sound_path, vibration_type, vibration_path, led_operation, led_argb, led_on_ms, led_off_ms, " "flags_for_property, display_applist, progress_size, progress_percentage, ongoing_flag, ongoing_value_type, " - "ongoing_current, ongoing_duration, auto_remove, default_button_index, timeout, text_input_max_length, event_flag " + "ongoing_current, ongoing_duration, auto_remove, default_button_index, timeout, text_input_max_length, event_flag, uid " "from noti_template where caller_pkgname = ? and template_name = ?", -1, &stmt, NULL); if (ret != SQLITE_OK) { NOTIFICATION_ERR("Error: %s\n", sqlite3_errmsg(db)); |