diff options
author | Myungki Lee <mk5004.lee@samsung.com> | 2016-06-09 21:22:47 +0900 |
---|---|---|
committer | Myungki Lee <mk5004.lee@samsung.com> | 2016-06-09 21:22:47 +0900 |
commit | 93d4e471e63ce5df8cc0bfe8993b8a1cf6ee9b70 (patch) | |
tree | 1456d5bad15e2d8a9d8e2c6ac3f5497e6e74e716 | |
parent | 71fb8d5eab41d097f155330827f8041b9b65c0df (diff) | |
download | notification-93d4e471e63ce5df8cc0bfe8993b8a1cf6ee9b70.tar.gz notification-93d4e471e63ce5df8cc0bfe8993b8a1cf6ee9b70.tar.bz2 notification-93d4e471e63ce5df8cc0bfe8993b8a1cf6ee9b70.zip |
Insert to noti->b_text the translate textsubmit/tizen/20160610.015635accepted/tizen/wearable/20160610.114441accepted/tizen/tv/20160610.114423accepted/tizen/mobile/20160610.114401accepted/tizen/ivi/20160610.114455accepted/tizen/common/20160613.144704
- when noti->b_text is null, bundle create and insert data.
But this bundle addr is different from noti->b_text.
Change-Id: Idf41cf97ab7b78cc81f1df79065448f7191bfd3d
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
-rwxr-xr-x | src/notification_internal.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/notification_internal.c b/src/notification_internal.c index ed0aab9..2d6b69f 100755 --- a/src/notification_internal.c +++ b/src/notification_internal.c @@ -366,9 +366,13 @@ EXPORT_API int notification_translate_localized_text(notification_h noti) for (; type < NOTIFICATION_TEXT_TYPE_MAX; type++) { noti_err = notification_get_text(noti, type, &ret_text); if (noti_err == NOTIFICATION_ERROR_NONE && ret_text) { + if (noti->b_text == NULL) { + noti->b_text = bundle_create(); + if (noti->b_text == NULL) + return NOTIFICATION_ERROR_OUT_OF_MEMORY; + } + b = noti->b_text; - if (b == NULL) - b = bundle_create(); new_text = strdup(ret_text); |