Skip to content

Commit 3273d2b

Browse files
[create-pull-request] automated change (#31638)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 5a07173 commit 3273d2b

File tree

4 files changed

+45
-45
lines changed

4 files changed

+45
-45
lines changed

src/Controls/src/Core/Handlers/Items/Android/Adapters/SelectableItemsViewAdapter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ internal void MarkPlatformSelection(SelectableItemsView selectableItemsView)
6666
}
6767

6868
_selectedSet.Clear();
69-
69+
7070
switch (selectableItemsView.SelectionMode)
7171
{
7272
case SelectionMode.None:
@@ -91,7 +91,7 @@ internal void MarkPlatformSelection(SelectableItemsView selectableItemsView)
9191
ClearPlatformSelection();
9292
return;
9393
}
94-
94+
9595
_selectedSet.UnionWith(selectedItems);
9696
break;
9797

src/Controls/tests/ManualTests/Tests/BugFixes/L1_TapGestureRecognizer.xaml.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,26 @@
33
namespace Microsoft.Maui.ManualTests.Tests.BugFixes;
44

55
[Test(
6-
id: "L1",
7-
title: "TapGestureRecognizer",
8-
category: Category.BugFixes)]
6+
id: "L1",
7+
title: "TapGestureRecognizer",
8+
category: Category.BugFixes)]
99
public partial class L1_TapGestureRecognizer : ContentPage
1010
{
11-
int count = 0;
12-
public L1_TapGestureRecognizer()
13-
{
11+
int count = 0;
12+
public L1_TapGestureRecognizer()
13+
{
1414
InitializeComponent();
1515
}
1616

17-
private void OnCounterClicked(object sender, EventArgs e)
18-
{
19-
count++;
17+
private void OnCounterClicked(object sender, EventArgs e)
18+
{
19+
count++;
2020

21-
if (count == 1)
22-
CounterLabel.Text = $"Clicked {count} time";
23-
else
24-
CounterLabel.Text = $"Clicked {count} times";
21+
if (count == 1)
22+
CounterLabel.Text = $"Clicked {count} time";
23+
else
24+
CounterLabel.Text = $"Clicked {count} times";
2525

26-
SemanticScreenReader.Announce(CounterLabel.Text);
27-
}
26+
SemanticScreenReader.Announce(CounterLabel.Text);
27+
}
2828
}

src/Controls/tests/TestCases.HostApp/Issues/Issue21375.xaml.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ void Calculate(object sender, EventArgs e)
9797
}
9898

9999
void ClearSelection(object sender, EventArgs e)
100-
{
101-
collectionView.SelectedItem = null;
102-
}
100+
{
101+
collectionView.SelectedItem = null;
102+
}
103103

104104
public class Item
105105
{

src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue21375.cs

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,44 @@ namespace Microsoft.Maui.TestCases.Tests.Issues;
88

99
public class Issue21375 : _IssuesUITest
1010
{
11-
public Issue21375(TestDevice device) : base(device) { }
11+
public Issue21375(TestDevice device) : base(device) { }
1212

13-
public override string Issue => "Selected CollectionView item is not announced";
13+
public override string Issue => "Selected CollectionView item is not announced";
1414

15-
[Test]
16-
[Category(UITestCategories.CollectionView)]
17-
public void SelectedItemsShowSelected ()
18-
{
19-
var collectionView = App.WaitForElement("collectionView");
15+
[Test]
16+
[Category(UITestCategories.CollectionView)]
17+
public void SelectedItemsShowSelected()
18+
{
19+
var collectionView = App.WaitForElement("collectionView");
2020

21-
App.Tap("Item 1");
22-
App.WaitForElement("calculateButton").Tap();
21+
App.Tap("Item 1");
22+
App.WaitForElement("calculateButton").Tap();
2323

24-
VerifyScreenshot(TestContext.CurrentContext.Test.MethodName + "_single");
24+
VerifyScreenshot(TestContext.CurrentContext.Test.MethodName + "_single");
2525

26-
App.WaitForElement("multipleButton").Tap();
27-
App.Tap("Item 2");
28-
App.Tap("Item 3");
29-
App.WaitForElement("calculateButton").Tap();
26+
App.WaitForElement("multipleButton").Tap();
27+
App.Tap("Item 2");
28+
App.Tap("Item 3");
29+
App.WaitForElement("calculateButton").Tap();
3030

31-
VerifyScreenshot(TestContext.CurrentContext.Test.MethodName + "_multiple");
31+
VerifyScreenshot(TestContext.CurrentContext.Test.MethodName + "_multiple");
3232

33-
App.WaitForElement("noneButton").Tap();
34-
App.WaitForElement("calculateButton").Tap();
35-
VerifyScreenshot(TestContext.CurrentContext.Test.MethodName + "_none");
33+
App.WaitForElement("noneButton").Tap();
34+
App.WaitForElement("calculateButton").Tap();
35+
VerifyScreenshot(TestContext.CurrentContext.Test.MethodName + "_none");
3636

37-
App.WaitForElement("singleButton").Tap();
38-
App.WaitForElement("calculateButton").Tap();
37+
App.WaitForElement("singleButton").Tap();
38+
App.WaitForElement("calculateButton").Tap();
3939

4040
#if !WINDOWS // Windows clears out the selected items when we switch back
41-
VerifyScreenshot(TestContext.CurrentContext.Test.MethodName + "_single");
41+
VerifyScreenshot(TestContext.CurrentContext.Test.MethodName + "_single");
4242

43-
App.WaitForElement("multipleButton").Tap();
44-
App.WaitForElement("calculateButton").Tap();
43+
App.WaitForElement("multipleButton").Tap();
44+
App.WaitForElement("calculateButton").Tap();
4545

46-
VerifyScreenshot(TestContext.CurrentContext.Test.MethodName + "_multiple");
46+
VerifyScreenshot(TestContext.CurrentContext.Test.MethodName + "_multiple");
4747
#endif
4848

49-
}
49+
}
5050
}
5151
#endif

0 commit comments

Comments
 (0)