summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsunyeop.hwnag <sunyeop.hwang@samsung.com>2012-09-01 07:09:41 (GMT)
committersunyeop.hwnag <sunyeop.hwang@samsung.com>2012-09-01 07:23:03 (GMT)
commit7b9d30601742c8f27e43aed0cbcaacc9c8f3c674 (patch)
treeac17964a7744c3a959a28b493981925f16718917
parentcf6435f2ee2c651a384cbcf44139c2284b97767f (diff)
downloadpwlock-7b9d30601742c8f27e43aed0cbcaacc9c8f3c674.zip
pwlock-7b9d30601742c8f27e43aed0cbcaacc9c8f3c674.tar.gz
pwlock-7b9d30601742c8f27e43aed0cbcaacc9c8f3c674.tar.bz2
check first_boot when tapi init fail
Change-Id: Ideae00de61f9c62b8466865fdc84447eb34d5520
-rwxr-xr-xsrc/pwlock.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/pwlock.c b/src/pwlock.c
index f62e6a3..0526e5f 100755
--- a/src/pwlock.c
+++ b/src/pwlock.c
@@ -435,7 +435,10 @@ Eina_Bool vconf_tapi_ready_expire_cb(void *pData)
} else {
if (vconf_val == VCONFKEY_TELEPHONY_TAPI_STATE_NONE) {
_DBG("TAPI is not ready, pwlock exit");
- _trans(ad, _ST_GREETING);
+ if (ad->is_exec_after_bootup == 0 && ad->is_first_boot && ad->cancel_setup == 0)
+ _trans(ad, _ST_GREETING);
+ else
+ _trans(ad, _ST_EXIT);
do_state(ad);
} else {
_DBG("TAPI is ready");
@@ -513,7 +516,11 @@ static int do_ST_TAPI_INIT(struct appdata *ad)
ad->t = pwlock_tapi_init(pwlock_tapi_cb, ad);
if (ad->t == NULL) {
_ERR("TAPI init error");
- _trans(ad, _ST_GREETING);
+ if (ad->is_exec_after_bootup == 0 && ad->is_first_boot && ad->cancel_setup == 0)
+ _trans(ad, _ST_GREETING);
+ else
+ _trans(ad, _ST_EXIT);
+
return ECORE_CALLBACK_RENEW;
}