Able to launch tethering apps
authorHyunjee Kim <hj0426.kim@samsung.com>
Mon, 17 Jun 2013 00:10:50 +0000 (09:10 +0900)
committerHyunjee Kim <hj0426.kim@samsung.com>
Mon, 17 Jun 2013 00:14:56 +0000 (09:14 +0900)
Change-Id: I59f46495d4134ab76b3adbb8d7aef3ab6f8ae76c

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

index 727afef..162bf99 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mobileap-agent
 Summary:    Mobile AP daemon for setting tethering environments
-Version:    0.1.89
+Version:    0.1.90
 Release:    1
 Group:      TO_BE/FILLED_IN
 License:    Flora License
index 3274e72..24a742f 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "mobileap_agent.h"
 
-#define MH_NOTI_APP_NAME       "org.tizen.tethering"
+#define MH_NOTI_APP_NAME       "setting-mobileap-efl"
 #define MH_AGENT_PKG_NAME "mobileap-agent"
 
 static int connected_noti_id = 0;
@@ -70,10 +70,8 @@ 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_DISABLE_APP_LAUNCH);
+                       NOTIFICATION_PROP_VOLATILE_DISPLAY);
        if (ret != NOTIFICATION_ERROR_NONE) {
                ERR("Fail to notification_set_property [%d]\n", ret);
                goto FAIL;
@@ -116,14 +114,11 @@ 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) {
@@ -188,11 +183,9 @@ 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_DISABLE_APP_LAUNCH);
+                       NOTIFICATION_PROP_VOLATILE_DISPLAY);
        if (ret != NOTIFICATION_ERROR_NONE) {
                ERR("Fail to notification_set_property [%d]\n", ret);
                goto FAIL;
@@ -234,14 +227,11 @@ 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) {