Skip to content

Commit b1dcdff

Browse files
mattleibowPureWeen
authored andcommitted
Revert "Fixes Setting BackgroundColor to null does not actually changes BackgroundColor #22914 (#22917)" (#30031)
This reverts commit 19402d3.
1 parent 6752a2a commit b1dcdff

File tree

5 files changed

+2
-85
lines changed

5 files changed

+2
-85
lines changed

src/Controls/tests/TestCases.HostApp/Issues/Issue22914.xaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

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

Lines changed: 0 additions & 26 deletions
This file was deleted.

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

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/Core/src/Platform/Android/ViewExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ internal static void UpdateBackground(this AView platformView, Paint? background
300300
platformView.Background = drawable;
301301
}
302302
}
303-
else if (platformView is not null)
303+
else if (platformView is LayoutViewGroup)
304304
{
305305
platformView.Background = null;
306306
}

src/Core/src/Platform/iOS/ViewExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public static void UpdateBackground(this UIView platformView, Paint? paint, IBut
7777

7878
if (paint.IsNullOrEmpty())
7979
{
80-
if (platformView is not null)
80+
if (platformView is LayoutView)
8181
platformView.BackgroundColor = null;
8282
else
8383
return;

0 commit comments

Comments
 (0)