Correction of path for usb tethering icon
authorsunil85.kim <sunil85.kim@samsung.com>
Fri, 3 May 2013 09:55:41 +0000 (18:55 +0900)
committerHyunjee Kim <hj0426.kim@samsung.com>
Thu, 13 Jun 2013 05:23:37 +0000 (14:23 +0900)
Change-Id: I13bdf1fc821332b740a709cc3931787e5820c81a

include/mobileap_notification.h
packaging/mobileap-agent.spec
src/mobileap_notification.c

index 6a7ee31..68b27aa 100644 (file)
@@ -23,7 +23,7 @@
 #include <notification.h>
 
 #define MH_NOTI_STR_MAX                50
-#define MH_NOTI_ICON_PATH      "/usr/apps/org.tizen.tethering/res/images/Q02_Notification_MobileAP.png"
+#define MH_NOTI_ICON_PATH      "/usr/ug/res/images/ug-setting-mobileap-efl/tethering.png"
 
 int _create_timeout_noti(const char *content, const char *title,
                const char *icon_path);
index 3bec494..727afef 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mobileap-agent
 Summary:    Mobile AP daemon for setting tethering environments
-Version:    0.1.88
+Version:    0.1.89
 Release:    1
 Group:      TO_BE/FILLED_IN
 License:    Flora License
index 62783f1..3274e72 100644 (file)
@@ -70,8 +70,10 @@ int _create_timeout_noti(const char *content, const char *title,
                return MOBILE_AP_ERROR_INTERNAL;
        }
 
+       /* To prevent the app running, using the flag(NOTIFICATION_PROP_DISABLE_APP_LAUNCH) */
        ret = notification_set_property(noti,
-                       NOTIFICATION_PROP_VOLATILE_DISPLAY);
+                       NOTIFICATION_PROP_VOLATILE_DISPLAY |
+                       NOTIFICATION_PROP_DISABLE_APP_LAUNCH);
        if (ret != NOTIFICATION_ERROR_NONE) {
                ERR("Fail to notification_set_property [%d]\n", ret);
                goto FAIL;
@@ -114,11 +116,14 @@ int _create_timeout_noti(const char *content, const char *title,
                goto FAIL;
        }
 
+       /* Unnecessary Code before app control implementation */
+       #if 0
        ret = notification_set_application(noti, MH_NOTI_APP_NAME);
        if (ret != NOTIFICATION_ERROR_NONE) {
                ERR("Fail to notification_set_application [%d]\n", ret);
                goto FAIL;
        }
+       #endif
 
        ret = notification_insert(noti, &timeout_noti_id);
        if (ret != NOTIFICATION_ERROR_NONE) {
@@ -183,9 +188,11 @@ int _create_connected_noti(const char *content, const char *title,
                return MOBILE_AP_ERROR_INTERNAL;
        }
 
+       /* To prevent the app running, using the flag(NOTIFICATION_PROP_DISABLE_APP_LAUNCH) */
        ret = notification_set_property(noti,
                        NOTIFICATION_PROP_DISABLE_AUTO_DELETE |
-                       NOTIFICATION_PROP_VOLATILE_DISPLAY);
+                       NOTIFICATION_PROP_VOLATILE_DISPLAY |
+                       NOTIFICATION_PROP_DISABLE_APP_LAUNCH);
        if (ret != NOTIFICATION_ERROR_NONE) {
                ERR("Fail to notification_set_property [%d]\n", ret);
                goto FAIL;
@@ -227,11 +234,14 @@ int _create_connected_noti(const char *content, const char *title,
                goto FAIL;
        }
 
+       /* Unnecessary Code before app control implementation */
+       #if 0
        ret = notification_set_application(noti, MH_NOTI_APP_NAME);
        if (ret != NOTIFICATION_ERROR_NONE) {
                ERR("Fail to notification_set_application [%d]\n", ret);
                goto FAIL;
        }
+       #endif
 
        ret = notification_insert(noti, &connected_noti_id);
        if (ret != NOTIFICATION_ERROR_NONE) {