change message of recent notification item 38/48438/1 accepted/tizen/tv/20150922.001354 submit/tizen/20150921.123936
authorSoohye Shin <soohye.shin@samsung.com>
Mon, 21 Sep 2015 11:44:56 +0000 (20:44 +0900)
committerSoohye Shin <soohye.shin@samsung.com>
Mon, 21 Sep 2015 11:44:56 +0000 (20:44 +0900)
Change-Id: Ic76b9c4b82a9f0e60f27b7015c98603e26f79cff
Signed-off-by: Soohye Shin <soohye.shin@samsung.com>
src/data/data_recent.c

index 9cb71c4..5fc9aa8 100644 (file)
@@ -424,10 +424,15 @@ static int _sort_list(const void *data1, const void *data2)
 static bool _load_recent_notification(struct datamgr *dm)
 {
        struct datamgr_item *di;
-       int time;
+       int time, count;
        char buf[MAX_BUF];
 
-       snprintf(buf, sizeof(buf), "%d", utils_get_notification_count());
+       count = utils_get_notification_count();
+
+       if (count > 0)
+               snprintf(buf, sizeof(buf), "%d Unread Noti.", count);
+       else
+               buf[0] = '\0';
 
        app_contents_get_basis_time(CONTENTS_NOTI, &time);
        if (time < 0) {