From: giyeol.ok Date: Wed, 24 Oct 2012 02:52:49 +0000 (+0900) Subject: insert mmc mount fail popup launching routine X-Git-Tag: submit/tizen_2.2/20130714.154253~7^2~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a3eb004fbe1cf70e8b99fed4c7a17788d9e4c0f;p=framework%2Fsystem%2Fsystem-server.git insert mmc mount fail popup launching routine --- diff --git a/ss_device_change_handler.c b/ss_device_change_handler.c index d44e1e9..30a0f2e 100755 --- a/ss_device_change_handler.c +++ b/ss_device_change_handler.c @@ -204,12 +204,27 @@ static void keyboard_chgdet_cb(struct ss_main_data *ad) static void mmc_chgdet_cb(void *data) { + int ret = -1; + int val = -1; if (data == NULL) { PRT_TRACE("mmc removed"); ss_mmc_removed(); } else { PRT_TRACE("mmc added"); - ss_mmc_inserted(); + ret = ss_mmc_inserted(); + if (ret == -1) { + vconf_get_int(VCONFKEY_SYSMAN_MMC_MOUNT,&val); + if (val == VCONFKEY_SYSMAN_MMC_MOUNT_FAILED) { + bundle *b = NULL; + b = bundle_create(); + bundle_add(b, "_SYSPOPUP_CONTENT_", "mounterr"); + ret = syspopup_launch("mmc-syspopup", b); + if (ret < 0) { + PRT_TRACE_ERR("popup launch failed"); + } + bundle_free(b); + } + } } }