-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Android] Fix crash disconnecting the IndicatorView (#11346)
* Fix crash disconnecting the IndicatorView on Android * Added IndicatorViewStub Co-authored-by: Rui Marinho <me@ruimarinho.net>
- Loading branch information
1 parent
cd5dd03
commit 3f8a4ea
Showing
9 changed files
with
67 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/Core/tests/DeviceTests/Handlers/IndicatorView/IndicatorViewHandlerTests.Android.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Microsoft.Maui.DeviceTests | ||
{ | ||
public partial class IndicatorViewHandlerTests | ||
{ | ||
|
||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/Core/tests/DeviceTests/Handlers/IndicatorView/IndicatorViewHandlerTests.Windows.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Microsoft.Maui.DeviceTests | ||
{ | ||
public partial class IndicatorViewHandlerTests | ||
{ | ||
|
||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/Core/tests/DeviceTests/Handlers/IndicatorView/IndicatorViewHandlerTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Microsoft.Maui.DeviceTests.Stubs; | ||
|
||
namespace Microsoft.Maui.DeviceTests | ||
{ | ||
[Category(TestCategory.IndicatorView)] | ||
public partial class IndicatorViewHandlerTests : CoreHandlerTestBase<IndicatorViewHandler, IndicatorViewStub> | ||
{ | ||
|
||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/Core/tests/DeviceTests/Handlers/IndicatorView/IndicatorViewHandlerTests.iOS.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Microsoft.Maui.DeviceTests | ||
{ | ||
public partial class IndicatorViewHandlerTests | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
namespace Microsoft.Maui.DeviceTests.Stubs | ||
{ | ||
public class IndicatorViewStub : StubBase, IIndicatorView | ||
{ | ||
public int Count { get; set; } | ||
|
||
public int Position { get; set; } | ||
|
||
public double IndicatorSize { get; set; } = 6.0d; | ||
|
||
public int MaximumVisible { get; set; } = int.MaxValue; | ||
|
||
public bool HideSingle { get; set; } | ||
|
||
public Paint IndicatorColor { get; set; } = new SolidPaint(Colors.Black); | ||
|
||
public Paint SelectedIndicatorColor { get; set; } = new SolidPaint(Colors.Grey); | ||
|
||
public IShape IndicatorsShape { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters