From: mk5004.lee Date: Thu, 18 Jul 2019 01:40:21 +0000 (+0900) Subject: Modify to use info.GetOwner() for dbus_sender X-Git-Tag: submit/tizen/20190729.004807~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61e423f7d342c6638a86cc948ce6602af0932110;p=platform%2Fcore%2Fapi%2Fnotification.git Modify to use info.GetOwner() for dbus_sender - if appid is found in eventinfo, use it. Change-Id: I28b7c20ea4ad8f7f23e180135a9a5d0eeac0403b Signed-off-by: mk5004.lee --- diff --git a/notification-ex/dbus_sender.cc b/notification-ex/dbus_sender.cc index 3628c7fa..22d6b98e 100644 --- a/notification-ex/dbus_sender.cc +++ b/notification-ex/dbus_sender.cc @@ -135,7 +135,10 @@ GDBusMessage* DBusSender::Impl::MethodCall(string appid, string method_name, } std::list DBusSender::Request(const IEventInfo& info) { - string appid = util::GetAppId(); + string appid = info.GetOwner(); + if (appid.length() == 0) + appid = util::GetAppId(); + string method_name = EventInfo::GetString(info.GetEventType()); Bundle serialized = info.Serialize(); @@ -155,7 +158,10 @@ std::list DBusSender::Request(const IEventInfo& info) { } int DBusSender::RequestNumber(const IEventInfo& info) { - string appid = util::GetAppId(); + string appid = info.GetOwner(); + if (appid.length() == 0) + appid = util::GetAppId(); + string method_name = EventInfo::GetString(info.GetEventType()); Bundle serialized = info.Serialize();