From a872fb9683eeef4a719c712135b0d4e2b49dee43 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 27 Aug 2023 00:28:50 +0000 Subject: [PATCH] [create-pull-request] automated change --- .../src/Core/Handlers/Shell/ShellItemHandler.Windows.cs | 4 ++-- .../src/Core/Handlers/Shell/ShellSectionHandler.Windows.cs | 4 ++-- src/Controls/src/Core/Layout/Layout.cs | 2 +- .../Elements/ContextFlyout/ContextFlyoutTests.Windows.cs | 2 +- .../tests/DeviceTests/Elements/Layout/LayoutTests.cs | 6 +++--- .../tests/DeviceTests/Elements/Shell/ShellTests.Windows.cs | 2 +- src/Controls/tests/UITests/Tests/Issues/Issue12211.cs | 2 +- src/Controls/tests/UITests/Tests/Issues/Issue15357.cs | 2 +- src/Controls/tests/UITests/Tests/Issues/Issue15826.cs | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Controls/src/Core/Handlers/Shell/ShellItemHandler.Windows.cs b/src/Controls/src/Core/Handlers/Shell/ShellItemHandler.Windows.cs index 5c16dcc01f3f..59662550fec2 100644 --- a/src/Controls/src/Core/Handlers/Shell/ShellItemHandler.Windows.cs +++ b/src/Controls/src/Core/Handlers/Shell/ShellItemHandler.Windows.cs @@ -358,7 +358,7 @@ internal void UpdateTitle() { MapMenuItems(); } - + void UpdateCurrentItem() { if (_currentShellSection == VirtualView.CurrentItem) @@ -444,7 +444,7 @@ public static void MapTitle(ShellItemHandler handler, ShellItem item) { handler.UpdateTitle(); } - + public static void MapCurrentItem(ShellItemHandler handler, ShellItem item) { handler.UpdateCurrentItem(); diff --git a/src/Controls/src/Core/Handlers/Shell/ShellSectionHandler.Windows.cs b/src/Controls/src/Core/Handlers/Shell/ShellSectionHandler.Windows.cs index ae31001a187b..143684a7c3c0 100644 --- a/src/Controls/src/Core/Handlers/Shell/ShellSectionHandler.Windows.cs +++ b/src/Controls/src/Core/Handlers/Shell/ShellSectionHandler.Windows.cs @@ -36,12 +36,12 @@ protected override WFrame CreatePlatformElement() return new WFrame(); } public static void MapTitle(ShellSectionHandler handler, ShellSection item) - { + { var shellItem = item.Parent as ShellItem; var shellItemHandler = shellItem?.Handler as ShellItemHandler; shellItemHandler?.UpdateTitle(); } - + public static void MapCurrentItem(ShellSectionHandler handler, ShellSection item) { handler.SyncNavigationStack(false, null); diff --git a/src/Controls/src/Core/Layout/Layout.cs b/src/Controls/src/Core/Layout/Layout.cs index a4f8acb35fdf..838337dbae44 100644 --- a/src/Controls/src/Core/Layout/Layout.cs +++ b/src/Controls/src/Core/Layout/Layout.cs @@ -167,7 +167,7 @@ public void Insert(int index, IView child) if (child is Element element) InsertLogicalChild(index, element); - + _children.Insert(index, child); OnInsert(index, child); diff --git a/src/Controls/tests/DeviceTests/Elements/ContextFlyout/ContextFlyoutTests.Windows.cs b/src/Controls/tests/DeviceTests/Elements/ContextFlyout/ContextFlyoutTests.Windows.cs index 64ecbf44dfcd..4b592cbddb6f 100644 --- a/src/Controls/tests/DeviceTests/Elements/ContextFlyout/ContextFlyoutTests.Windows.cs +++ b/src/Controls/tests/DeviceTests/Elements/ContextFlyout/ContextFlyoutTests.Windows.cs @@ -147,7 +147,7 @@ public void AddFlyoutItem(string text) flyout.Add(flyoutItem); } - public void RemoveFlyoutItem(int index) + public void RemoveFlyoutItem(int index) { flyout.RemoveAt(index); } diff --git a/src/Controls/tests/DeviceTests/Elements/Layout/LayoutTests.cs b/src/Controls/tests/DeviceTests/Elements/Layout/LayoutTests.cs index b01cd6b9cca0..be2d83bd69ee 100644 --- a/src/Controls/tests/DeviceTests/Elements/Layout/LayoutTests.cs +++ b/src/Controls/tests/DeviceTests/Elements/Layout/LayoutTests.cs @@ -279,7 +279,7 @@ await InvokeOnMainThreadAsync(async () => Assert.True(label.Height <= grid.MaximumHeightRequest); Assert.True(grid.Height <= grid.MaximumHeightRequest); } - + [Fact] public async Task GridAddAndRemoveChildrenViaIndex() { @@ -303,7 +303,7 @@ public async Task GridAddAndRemoveChildrenViaIndex() await InvokeOnMainThreadAsync(async () => { - await AttachAndRun(grid, (handler) => + await AttachAndRun(grid, (handler) => { Assert.True((grid[1] as Label).Text == "Hello world"); @@ -325,7 +325,7 @@ await AttachAndRun(grid, (handler) => }); }); } - + /* Commented out of for now due to inconsistent platform behavior [Fact("Ensures grid rows renders the correct size - Issue 15330")] public async Task Issue15330() diff --git a/src/Controls/tests/DeviceTests/Elements/Shell/ShellTests.Windows.cs b/src/Controls/tests/DeviceTests/Elements/Shell/ShellTests.Windows.cs index aac1b99d1330..481dd371afa4 100644 --- a/src/Controls/tests/DeviceTests/Elements/Shell/ShellTests.Windows.cs +++ b/src/Controls/tests/DeviceTests/Elements/Shell/ShellTests.Windows.cs @@ -7,11 +7,11 @@ using Microsoft.Maui.Controls; using Microsoft.Maui.Controls.Handlers; using Microsoft.Maui.Controls.Platform; +using Microsoft.Maui.DeviceTests.Stubs; using Microsoft.Maui.Graphics; using Microsoft.Maui.Platform; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; -using Microsoft.Maui.DeviceTests.Stubs; using Xunit; using NavigationView = Microsoft.UI.Xaml.Controls.NavigationView; using WFrameworkElement = Microsoft.UI.Xaml.FrameworkElement; diff --git a/src/Controls/tests/UITests/Tests/Issues/Issue12211.cs b/src/Controls/tests/UITests/Tests/Issues/Issue12211.cs index cf7b89504ba9..c0a8dbcdac38 100644 --- a/src/Controls/tests/UITests/Tests/Issues/Issue12211.cs +++ b/src/Controls/tests/UITests/Tests/Issues/Issue12211.cs @@ -8,7 +8,7 @@ public class Issue12211 : _IssuesUITest private string buttonId = "ChangeOpacity"; public Issue12211(TestDevice device) : base(device) - { + { } public override string Issue => "[Android] BoxView Opacity not working"; diff --git a/src/Controls/tests/UITests/Tests/Issues/Issue15357.cs b/src/Controls/tests/UITests/Tests/Issues/Issue15357.cs index 123ff38f444b..5814235617a3 100644 --- a/src/Controls/tests/UITests/Tests/Issues/Issue15357.cs +++ b/src/Controls/tests/UITests/Tests/Issues/Issue15357.cs @@ -8,7 +8,7 @@ public class Issue15357 : _IssuesUITest private string buttonId = "ButtonClick"; public Issue15357(TestDevice device) : base(device) - { + { } public override string Issue => "IsVisible binding not showing items again if Shadow is set"; diff --git a/src/Controls/tests/UITests/Tests/Issues/Issue15826.cs b/src/Controls/tests/UITests/Tests/Issues/Issue15826.cs index f24928f23bba..4f369604fa67 100644 --- a/src/Controls/tests/UITests/Tests/Issues/Issue15826.cs +++ b/src/Controls/tests/UITests/Tests/Issues/Issue15826.cs @@ -8,7 +8,7 @@ public class Issue15826 : _IssuesUITest private string buttonId = "Swap"; public Issue15826(TestDevice device) : base(device) - { + { } public override string Issue => "ListView visibility doesn't work well";