diff options
author | JinWang An <jinwang.an@samsung.com> | 2021-06-29 15:48:17 +0900 |
---|---|---|
committer | JinWang An <jinwang.an@samsung.com> | 2021-06-29 15:49:04 +0900 |
commit | 79fb0d1ff6d63268ade0391073ed475662ff48ce (patch) | |
tree | eb759a6982bb4d377cb3d5ba10f50e29cf62fe46 | |
parent | f82d316d8907652598e93066f56cff68fda587e4 (diff) | |
download | watch-setting-79fb0d1ff6d63268ade0391073ed475662ff48ce.tar.gz watch-setting-79fb0d1ff6d63268ade0391073ed475662ff48ce.tar.bz2 watch-setting-79fb0d1ff6d63268ade0391073ed475662ff48ce.zip |
Change return struct at process_extra_data()submit/tizen/20210629.072501accepted/tizen/unified/20210630.144016
Change-Id: I5e2f6e208b5fd5f24a8d0142f6889eb060c4c6f9
Signed-off-by: JinWang An <jinwang.an@samsung.com>
-rw-r--r-- | src/setting.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/setting.c b/src/setting.c index 754d4c4..78b0ba9 100644 --- a/src/setting.c +++ b/src/setting.c @@ -914,6 +914,7 @@ void clear_popup_naviframe(appdata *ad) int process_extra_data(void *data, app_control_h service) { char *param = NULL; + int ret; appdata *ad = data; setting_retvm_if(!data, 0, "NO App data!!"); @@ -954,15 +955,15 @@ int process_extra_data(void *data, app_control_h service) elm_win_activate(ad->win_main); } DBG("Setting - enable direct brightness or volume setting"); - FREE(param); - return 1; + ret = 1; } else { if (ad->is_first_launch) _create_view_layout(ad); DBG("Setting - disable direct brightness or volume setting - CanNOT read the launch-type param"); + ret = 0; } FREE(param); - return 0; + return ret; } void app_ctrl(app_control_h service, void *data) |