From: hyunho Date: Tue, 16 Apr 2019 09:53:56 +0000 (+0900) Subject: Fix update hide logic X-Git-Tag: submit/tizen/20190417.022333~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1de1e3a41971ec72b32b8205adb08b10fbca69ee;p=platform%2Fcore%2Fappfw%2Fdata-provider-master.git Fix update hide logic Without this patch, DPMReporter will unintentionally skip event which hide viewer list is empty Change-Id: I1216dd6e5be63cec9aa78c851d8ff71151f8d929 Signed-off-by: hyunho --- diff --git a/src/notification_ex_service.cc b/src/notification_ex_service.cc index a1d94f0..34670a2 100755 --- a/src/notification_ex_service.cc +++ b/src/notification_ex_service.cc @@ -143,6 +143,9 @@ class DPMReporter : public Reporter { int ret; string hide_list; int uid = static_pointer_cast(updatedItem->GetInfo())->GetUid(); + DBG("try update hide app_id(%s) sender(%s) uid(%s)", + updatedItem->GetId().c_str(), + updatedItem->GetSenderAppId().c_str(), string(to_string(uid)).c_str()); string map_key = updatedItem->GetId() + updatedItem->GetSenderAppId() + string(to_string(uid)); list updated_hide_list = static_pointer_cast(updatedItem->GetInfo())->GetHideViewerList(); @@ -159,6 +162,9 @@ class DPMReporter : public Reporter { facade_->hide_map_[map_key] = hide_list; return ERROR_NONE; + } else { + DBG("Empty hide viewer list"); + return ERROR_NOT_EXIST_ID; } }