[NUI] Fix build warnings related to XAML (#2287)
authorSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Wed, 2 Dec 2020 04:28:06 +0000 (13:28 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 8 Dec 2020 06:23:12 +0000 (15:23 +0900)
- Need to avoid assigning a property to itself
 https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2245
- Not to use broken cryptographic algorithm : MD5 -> SHA256
 https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca5351

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
src/Tizen.NUI/src/internal/XamlBinding/TizenPlatformServices.cs
src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs
src/Tizen.NUI/src/public/BaseComponents/TextField.cs

index 995624e..d7725ef 100755 (executable)
@@ -15,7 +15,7 @@ namespace Tizen.NUI.Binding
 {
     internal class TizenPlatformServices : IPlatformServices
     {
-        static MD5 checksum = MD5.Create();
+        static SHA256 checksum = SHA256.Create();
 
         static SynchronizationContext s_context;
 
index ed91df8..0d9f6fd 100755 (executable)
@@ -1185,7 +1185,7 @@ namespace Tizen.NUI.BaseComponents
                 {
                     this.TextChanged += (obj, e) =>
                     {
-                        this.Text = this.Text;
+                        this.Text = e.TextEditor.Text;
                     };
                 }
             }
index 2d362e3..7b8fa6b 100755 (executable)
@@ -1297,7 +1297,7 @@ namespace Tizen.NUI.BaseComponents
                 {
                     this.TextChanged += (obj, e) =>
                     {
-                        this.Text = this.Text;
+                        this.Text = e.TextField.Text;
                     };
                 }
             }