From: dongsug.song Date: Tue, 29 Nov 2022 03:45:12 +0000 (+0900) Subject: [NUI] fix to be able to set null to AnimatedVectorImageView.ResoureUrl property X-Git-Tag: submit/tizen_7.0/20221129.041334~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=9e2108be029874b973ff59cc606f432b958f1f61;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] fix to be able to set null to AnimatedVectorImageView.ResoureUrl property --- 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) => {