[NUI] fix to be able to set null to AnimatedVectorImageView.ResoureUrl property
authordongsug.song <dongsug.song@samsung.com>
Tue, 29 Nov 2022 03:45:12 +0000 (12:45 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 29 Nov 2022 04:09:47 +0000 (13:09 +0900)
src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageViewBindableProperty.cs

index 19d0175..af678e9 100755 (executable)
@@ -29,10 +29,7 @@ namespace Tizen.NUI.BaseComponents
         public static readonly BindableProperty ResourceURLProperty = BindableProperty.Create(nameof(ResourceURL), typeof(string), typeof(AnimatedVectorImageView), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
         {
             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
-            if (newValue != null)
-            {
-                instance.InternalResourceURL = (string)newValue;
-            }
+            instance.InternalResourceURL = (string)newValue;
         },
         defaultValueCreator: (bindable) =>
         {
@@ -47,10 +44,7 @@ namespace Tizen.NUI.BaseComponents
         public static new readonly BindableProperty ResourceUrlProperty = BindableProperty.Create(nameof(ResourceUrl), typeof(string), typeof(AnimatedVectorImageView), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
         {
             var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
-            if (newValue != null)
-            {
-                instance.InternalResourceUrl = (string)newValue;
-            }
+            instance.InternalResourceUrl = (string)newValue;
         },
         defaultValueCreator: (bindable) =>
         {