From 9e2108be029874b973ff59cc606f432b958f1f61 Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Tue, 29 Nov 2022 12:45:12 +0900 Subject: [PATCH] [NUI] fix to be able to set null to AnimatedVectorImageView.ResoureUrl property --- .../BaseComponents/AnimatedVectorImageViewBindableProperty.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageViewBindableProperty.cs b/src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageViewBindableProperty.cs index 19d0175..af678e9 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageViewBindableProperty.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/AnimatedVectorImageViewBindableProperty.cs @@ -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) => { -- 2.7.4