Modify error handling conditional statement 11/107411/2 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable accepted/tizen/3.0.m2/mobile/20170104.121846 accepted/tizen/3.0.m2/tv/20170104.122340 accepted/tizen/3.0.m2/wearable/20170104.122721 accepted/tizen/3.0/common/20161229.112721 accepted/tizen/3.0/ivi/20161229.054115 accepted/tizen/3.0/mobile/20161229.054030 accepted/tizen/3.0/tv/20161229.054049 accepted/tizen/3.0/wearable/20161229.054103 submit/tizen_3.0.m2/20170104.093749 submit/tizen_3.0/20161228.051438
authorseungha.son <seungha.son@samsung.com>
Wed, 28 Dec 2016 02:27:04 +0000 (11:27 +0900)
committerseungha.son <seungha.son@samsung.com>
Wed, 28 Dec 2016 05:50:56 +0000 (14:50 +0900)
 - When data-provider-master get badge display option,
   even if the badge display is not set, the logic is modified
   so that the initial value is set to true.

Signed-off-by: seungha.son <seungha.son@samsung.com>
Change-Id: I4f59d0129ae015ddf370677de46fe70ca166d7e4

src/badge_service.c

index 58a4b71..24c63ca 100755 (executable)
@@ -677,7 +677,7 @@ int badge_update_badge_setting(GVariant *parameters, GVariant **reply_body, uid_
                        return ret;
        } else {
                ret = badge_db_get_display_option(appid, &disp_option, param_uid);
-               if (ret != BADGE_ERROR_NONE) {
+               if (ret != BADGE_ERROR_NONE && ret != BADGE_ERROR_NOT_EXIST) {
                        ErrPrint("Failed badge_db_get_display_option");
                        return ret;
                }