[NUI] Temporary checking if Lottie file is set in ImageView (#918)
authordongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 3 Jul 2019 00:38:56 +0000 (09:38 +0900)
committerGitHub <noreply@github.com>
Wed, 3 Jul 2019 00:38:56 +0000 (09:38 +0900)
src/Tizen.NUI/src/public/BaseComponents/ImageView.cs

index 38b764c..7bf3f2a 100755 (executable)
@@ -582,6 +582,12 @@ namespace Tizen.NUI.BaseComponents
         /// <since_tizen> 3 </since_tizen>
         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();