From: kilig Date: Tue, 26 Jan 2021 00:25:02 +0000 (+0900) Subject: [MessagePort] Fix bug for getting remote value (#2555) X-Git-Tag: submit/tizen_6.0/20210126.142202~1^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=83c450349f7567456872dcbc1b988d862aae403c;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [MessagePort] Fix bug for getting remote value (#2555) Signed-off-by: Inkyun Kil --- diff --git a/src/Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessagePort.cs b/src/Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessagePort.cs index f7cddc0..d6cde61 100755 --- a/src/Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessagePort.cs +++ b/src/Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessagePort.cs @@ -174,15 +174,12 @@ namespace Tizen.Applications.Messages return; } - if (!String.IsNullOrEmpty(remotePortName) && !String.IsNullOrEmpty(remoteAppId)) + args.Remote = new RemoteValues() { - args.Remote = new RemoteValues() - { - AppId = remoteAppId, - PortName = remotePortName, - Trusted = trusted - }; - } + AppId = remoteAppId, + PortName = remotePortName, + Trusted = trusted + }; MessageReceived?.Invoke(this, args); };