From ce96b64ad514efff0b848c85398e913bffee8d78 Mon Sep 17 00:00:00 2001 From: coderhyme Date: Thu, 13 Jul 2017 18:36:02 +0900 Subject: [PATCH] [ScreenMirroring] Fixed compile error. The error is caused by https://review.tizen.org/gerrit/#/c/136118/. Change-Id: Ic6df7a860a5fd184d059d6275bccc7ec79c7429c Signed-off-by: coderhyme --- .../ScreenMirroring/ScreenMirroring.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Tizen.Multimedia.Remoting/ScreenMirroring/ScreenMirroring.cs b/src/Tizen.Multimedia.Remoting/ScreenMirroring/ScreenMirroring.cs index 9ef7bd3..63fee48 100644 --- a/src/Tizen.Multimedia.Remoting/ScreenMirroring/ScreenMirroring.cs +++ b/src/Tizen.Multimedia.Remoting/ScreenMirroring/ScreenMirroring.cs @@ -163,15 +163,9 @@ namespace Tizen.Multimedia private void ReplaceDisplay(Display newDisplay) { - if (_display != null) - { - _display.Owner = null; - } + _display?.SetOwner(null); _display = newDisplay; - if (_display != null) - { - _display.Owner = this; - } + _display?.SetOwner(this); } /// -- 2.7.4