[NUI] Fix not to use setter of AnimatedImageView.URLs (#2303)
authorJaehyun Cho <29364140+jaehyun0cho@users.noreply.github.com>
Fri, 27 Nov 2020 07:35:49 +0000 (16:35 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 1 Dec 2020 08:56:39 +0000 (17:56 +0900)
The setter of AnimatedImageView.URLs was removed to resolve CA2227.
Therefore, the setter of AnimatedImageView.URLs in sample code is also
removed.

Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/AnimatedImageViewTest.cs

index 53c1ca4..defb0c7 100755 (executable)
@@ -167,12 +167,10 @@ namespace Tizen.NUI.Samples
             box2 = new Box(new Size2D(root.Size2D.Width, GetRatio(40, root.Size2D.Height)), "Image array Test", "");
             root.Add(box2);
 
-            var list = new List<string>();
             for (int i = 1; i <= 8; i++)
             {
-                list.Add(resPath + "images/AGIF/dog-anim-00" + i + ".png");
+                box2.image.URLs.Add(resPath + "images/AGIF/dog-anim-00" + i + ".png");
             }
-            box2.image.URLs = list;
             box2.image.Play();
 
             box2.but1.Clicked += But1_Clicked1;