From: dongsug-song <35130733+dongsug-song@users.noreply.github.com> Date: Wed, 3 Jul 2019 00:38:56 +0000 (+0900) Subject: [NUI] Temporary checking if Lottie file is set in ImageView (#918) X-Git-Tag: submit/tizen/20190703.094500~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65bda2cb1c1c447df55f112fe15ac0b1ab938540;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Temporary checking if Lottie file is set in ImageView (#918) --- diff --git a/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs b/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs index 38b764c62..7bf3f2a76 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs @@ -582,6 +582,12 @@ namespace Tizen.NUI.BaseComponents /// 3 public void SetImage(string url) { + if(url.Contains(".json")) + { + Tizen.Log.Fatal("NUI", "[ERROR] Please DO NOT set lottie file in ImageView! This is temporary checking, will be removed soon!"); + return; + } + Interop.ImageView.ImageView_SetImage__SWIG_1(swigCPtr, url); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); @@ -829,6 +835,12 @@ namespace Tizen.NUI.BaseComponents internal void SetImage(string url, Uint16Pair size) { + if(url.Contains(".json")) + { + Tizen.Log.Fatal("NUI", "[ERROR] Please DO NOT set lottie file in ImageView! This is temporary checking, will be removed soon!"); + return; + } + Interop.ImageView.ImageView_SetImage__SWIG_2(swigCPtr, url, Uint16Pair.getCPtr(size)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();