summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSegwon <segwon.han@samsung.com>2017-01-06 17:30:46 +0900
committerSegwon <segwon.han@samsung.com>2017-01-06 17:31:16 +0900
commit99556110dffef4cee87493055799852aa05adb4d (patch)
tree6b5ef0d07adfd2ec4d991768d86de1ab8235bc7d
parented98ca768a2bd8c8a63bc8c950189644d68f9fd7 (diff)
downloadd2d-conv-setting-accepted/tizen_wearable.tar.gz
d2d-conv-setting-accepted/tizen_wearable.tar.bz2
d2d-conv-setting-accepted/tizen_wearable.zip
Signed-off-by: Segwon <segwon.han@samsung.com> Change-Id: I9e395dd89c4f0b87e31778626cab35981a91924a
-rw-r--r--src/ui/setting_home.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/ui/setting_home.c b/src/ui/setting_home.c
index 85aaa06..9477bc8 100644
--- a/src/ui/setting_home.c
+++ b/src/ui/setting_home.c
@@ -47,6 +47,11 @@ static void tizen_connect_power_on()
if (ret != CONV_ERROR_NONE) {
dlog_print(DLOG_ERROR, LOG_TAG, "tizen_connect_power_on error. ret = %d", ret);
}
+
+ ret = conv_internal_set_service_activation_state(tizen_connect_power_state);
+ if (ret != CONV_ERROR_NONE) {
+ dlog_print(DLOG_ERROR, LOG_TAG, "conv_internal_set_service_activation_state error. ret = %d", ret);
+ }
}
static void tizen_connect_power_off()
@@ -55,10 +60,15 @@ static void tizen_connect_power_off()
notice_disable(EINA_FALSE);
tizen_connect_power_state = 0;
- int ret = conv_internal_set_activation_state(0);
+ int ret = conv_internal_set_activation_state(tizen_connect_power_state);
if (ret != CONV_ERROR_NONE) {
dlog_print(DLOG_ERROR, LOG_TAG, "tizen_connect_power_off error. ret = %d", ret);
}
+
+ ret = conv_internal_set_service_activation_state(tizen_connect_power_state);
+ if (ret != CONV_ERROR_NONE) {
+ dlog_print(DLOG_ERROR, LOG_TAG, "conv_internal_set_service_activation_state error. ret = %d", ret);
+ }
}
static int get_tizen_connect_power_state()