From 65bda2cb1c1c447df55f112fe15ac0b1ab938540 Mon Sep 17 00:00:00 2001 From: dongsug-song <35130733+dongsug-song@users.noreply.github.com> Date: Wed, 3 Jul 2019 09:38:56 +0900 Subject: [PATCH] [NUI] Temporary checking if Lottie file is set in ImageView (#918) --- src/Tizen.NUI/src/public/BaseComponents/ImageView.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs b/src/Tizen.NUI/src/public/BaseComponents/ImageView.cs index 38b764c..7bf3f2a 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(); -- 2.7.4