From 06c48972d3f1931f3acaafb0566950d1872cef53 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 9 Aug 2023 00:29:48 +0000 Subject: [PATCH] [create-pull-request] automated change --- .../Platform/GestureManager/GesturePlatformManager.Windows.cs | 2 +- src/Controls/tests/Xaml.UnitTests.ExternalAssembly/App.cs | 4 ++-- src/Controls/tests/Xaml.UnitTests/Issues/Maui13585.xaml.cs | 2 +- src/Graphics/src/Graphics/Font.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs b/src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs index d7065ecdd498..bf2399048742 100644 --- a/src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs +++ b/src/Controls/src/Core/Platform/GestureManager/GesturePlatformManager.Windows.cs @@ -476,7 +476,7 @@ void OnPointerReleased(object sender, PointerRoutedEventArgs e) { uint id = e.Pointer.PointerId; if (_fingers.Contains(id)) - _fingers.Remove(id); + _fingers.Remove(id); SwipeComplete(true); PinchComplete(true); PanComplete(true); diff --git a/src/Controls/tests/Xaml.UnitTests.ExternalAssembly/App.cs b/src/Controls/tests/Xaml.UnitTests.ExternalAssembly/App.cs index d0d5c39d083b..f26b7b47c868 100644 --- a/src/Controls/tests/Xaml.UnitTests.ExternalAssembly/App.cs +++ b/src/Controls/tests/Xaml.UnitTests.ExternalAssembly/App.cs @@ -8,9 +8,9 @@ using Microsoft.Extensions.Logging; using Microsoft.Maui.Graphics; -[assembly: Microsoft.Maui.Controls.XmlnsDefinition ( +[assembly: Microsoft.Maui.Controls.XmlnsDefinition( xmlNamespace: "http://example.com/maui-controls", clrNamespace: "Microsoft.Maui.Controls", - AssemblyName="Microsoft.Maui.Controls")] + AssemblyName = "Microsoft.Maui.Controls")] namespace Microsoft.Maui.Controls.ControlGallery { diff --git a/src/Controls/tests/Xaml.UnitTests/Issues/Maui13585.xaml.cs b/src/Controls/tests/Xaml.UnitTests/Issues/Maui13585.xaml.cs index 61b9877eb278..1c525fc972bb 100644 --- a/src/Controls/tests/Xaml.UnitTests/Issues/Maui13585.xaml.cs +++ b/src/Controls/tests/Xaml.UnitTests/Issues/Maui13585.xaml.cs @@ -1,8 +1,8 @@ using System; -using Microsoft.Maui.Graphics; using Microsoft.Maui.ApplicationModel; using Microsoft.Maui.Controls.Core.UnitTests; using Microsoft.Maui.Devices; +using Microsoft.Maui.Graphics; using NUnit.Framework; diff --git a/src/Graphics/src/Graphics/Font.cs b/src/Graphics/src/Graphics/Font.cs index 7811b4611c05..396f7e6072bd 100644 --- a/src/Graphics/src/Graphics/Font.cs +++ b/src/Graphics/src/Graphics/Font.cs @@ -49,7 +49,7 @@ public bool Equals(IFont other) StyleType == other.StyleType && Weight == other.Weight && ((Name is null && other.Name is null) || Name.Equals(other.Name, StringComparison.OrdinalIgnoreCase)); - + public override bool Equals(object obj) => obj is IFont font && Equals(font);