fix to set vconf properly 44/110144/1 accepted/tizen/3.0/common/20170116.122143 accepted/tizen/3.0/ivi/20170113.235831 accepted/tizen/3.0/mobile/20170113.235743 accepted/tizen/3.0/tv/20170113.235758 accepted/tizen/3.0/wearable/20170113.235815 submit/tizen_3.0/20170113.055811
authorjomui <jongmun.woo@samsung.com>
Fri, 13 Jan 2017 05:34:31 +0000 (14:34 +0900)
committerjomui <jongmun.woo@samsung.com>
Fri, 13 Jan 2017 05:34:49 +0000 (14:34 +0900)
Signed-off-by: jomui <jongmun.woo@samsung.com>
Change-Id: I04454bd9f0e6bac73ef1b4187b699aa062be8a2e

heremaps-uc/src/heremaps-uc-common.h
heremaps-uc/src/heremaps-uc.c
maps-plugin-here.changes
packaging/maps-plugin-here.spec

index f5d66aa32265e53b356b822b7302e6ee590482e2..68bc0baa9a6d20eea13f9ee6d96f275b43e85f43 100644 (file)
@@ -136,6 +136,7 @@ typedef struct appdata {
        Evas_Object *layout_main;
 
        Evas_Object *popup;
+       int btn_clicked;
 } heremaps_uc_app_data;
 
 #ifdef __cplusplus
index 1445fdcc911019f620c748f05b94ef8f41112984..2931fd70d23523d77f20c8540996d77c0ebda1ff 100644 (file)
@@ -79,8 +79,11 @@ static void save_vconf(int value)
 static void disagree_btn_cb(void *data, Evas_Object * obj, void *event)
 {
        LS_FUNC_ENTER
+       heremaps_uc_app_data *ad = (heremaps_uc_app_data *) data;
+       LS_RETURN_IF_FAILED(ad);
 
        save_vconf(0);
+       ad->btn_clicked = 1;
 
        elm_exit();
 }
@@ -89,8 +92,11 @@ static void disagree_btn_cb(void *data, Evas_Object * obj, void *event)
 static void agree_btn_cb(void *data, Evas_Object * obj, void *event)
 {
        LS_FUNC_ENTER
+       heremaps_uc_app_data *ad = (heremaps_uc_app_data *) data;
+       LS_RETURN_IF_FAILED(ad);
 
        save_vconf(1);
+       ad->btn_clicked = 1;
 
        elm_exit();
 }
@@ -98,8 +104,12 @@ static void agree_btn_cb(void *data, Evas_Object * obj, void *event)
 static void back_btn_cb(void *data, Evas_Object * obj, void *event)
 {
        LS_FUNC_ENTER
+       heremaps_uc_app_data *ad = (heremaps_uc_app_data *) data;
+       LS_RETURN_IF_FAILED(ad);
 
        save_vconf(0);
+       ad->btn_clicked = 1;
+
        elm_exit();
 }
 
@@ -234,8 +244,11 @@ static void _app_terminate_cb(void *user_data)
 static void _app_pause_cb(void *user_data)
 {
        LS_FUNC_ENTER
+       heremaps_uc_app_data *ad = (heremaps_uc_app_data *) user_data;
+       LS_RETURN_IF_FAILED(ad);
 
-       save_vconf(0);
+       if (ad->btn_clicked == 0)
+               save_vconf(0);
 
        elm_exit();
 }
@@ -263,6 +276,7 @@ static void _app_control_cb(app_control_h app_control, void *user_data)
        bindtextdomain(HEREMAPS_UC_PKG, LOCALE_DIR);
 
        save_vconf(-1);
+       ad->btn_clicked = 0;
 
        ad->win_main = create_win(HEREMAPS_UC_PKG);
        ad->conformant = create_conformant(ad->win_main);
index 1570959539c781429d23db7547e170f966809c64..1fcd89bed43704a0eec5410fb33e17fbc3945b7d 100644 (file)
@@ -1,3 +1,8 @@
+[Version]   maps-plugin-here_0.3.15
+[Date]      13 Jan 2017
+[Title]     fixed to set vconf value
+[Developer] Jongmun Woo <jongmun.woo@samsung.com>
+
 [Version]   maps-plugin-here_0.3.14
 [Date]      09 Dec 2016
 [Title]     fixed to get place ratings normally
index 4986584f43ecf07ea9dff0500be773ad75136947..3931915ef9851010c9a8ada1b7b9ce9c157ac329 100644 (file)
@@ -1,6 +1,6 @@
 Name:       maps-plugin-here
 Summary:    Tizen HERE Maps Plug-in Library
-Version:    0.3.14
+Version:    0.3.15
 Release:    1
 Group:      Location/Libraries
 License:    Apache-2.0 and HERE