Skip to content

Commit

Permalink
[net8.0] Make UpdateBackground public (#16453)
Browse files Browse the repository at this point in the history
* [api] Make UpdateBackground public

* Keep extensions internal
  • Loading branch information
rmarinho committed Aug 1, 2023
1 parent 09df5c4 commit 741a4e0
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 6 deletions.
Expand Up @@ -43,8 +43,7 @@ protected override void ConnectHandler(ShapeableImageView platformView)
base.ConnectHandler(platformView);
}

// TODO: NET8 make this public
internal static void MapBackground(IImageButtonHandler handler, IImageButton imageButton)
public static void MapBackground(IImageButtonHandler handler, IImageButton imageButton)
{
(handler.PlatformView as ShapeableImageView)?.UpdateBackground(imageButton);
}
Expand Down
3 changes: 1 addition & 2 deletions src/Core/src/Handlers/SearchBar/SearchBarHandler.iOS.cs
Expand Up @@ -67,8 +67,7 @@ public override Size GetDesiredSize(double widthConstraint, double heightConstra
return base.GetDesiredSize(widthConstraint, heightConstraint);
}

// TODO: NET8 make this public
internal static void MapBackground(ISearchBarHandler handler, ISearchBar searchBar)
public static void MapBackground(ISearchBarHandler handler, ISearchBar searchBar)
{
handler.PlatformView?.UpdateBackground(searchBar);
}
Expand Down
1 change: 0 additions & 1 deletion src/Core/src/Platform/Android/ViewExtensions.cs
Expand Up @@ -182,7 +182,6 @@ public static void UpdateBackground(this ContentViewGroup platformView, IBorderS
internal static void UpdateBackground(this TextView platformView, IView view) =>
UpdateBackground(platformView, view, true);

// TODO: NET8 make this public for NET8.0
internal static void UpdateBackground(this EditText platformView, IView view)
{
if (platformView is null || platformView.Context is null)
Expand Down
1 change: 0 additions & 1 deletion src/Core/src/Platform/iOS/SearchBarExtensions.cs
Expand Up @@ -15,7 +15,6 @@ public static class SearchBarExtensions
return searchBar.GetSearchTextField();
}

// TODO: NET8 maybe make this public?
internal static void UpdateBackground(this UISearchBar uiSearchBar, ISearchBar searchBar)
{
var background = searchBar.Background;
Expand Down
1 change: 1 addition & 0 deletions src/Core/src/PublicAPI/net-android/PublicAPI.Unshipped.txt
Expand Up @@ -76,6 +76,7 @@ static Microsoft.Maui.GridLength.operator !=(Microsoft.Maui.GridLength left, Mic
static Microsoft.Maui.GridLength.operator ==(Microsoft.Maui.GridLength left, Microsoft.Maui.GridLength right) -> bool
static Microsoft.Maui.Handlers.EditorHandler.MapIsSpellCheckEnabled(Microsoft.Maui.Handlers.IEditorHandler! handler, Microsoft.Maui.IEditor! editor) -> void
static Microsoft.Maui.Handlers.EntryHandler.MapIsSpellCheckEnabled(Microsoft.Maui.Handlers.IEntryHandler! handler, Microsoft.Maui.IEntry! entry) -> void
static Microsoft.Maui.Handlers.ImageButtonHandler.MapBackground(Microsoft.Maui.Handlers.IImageButtonHandler! handler, Microsoft.Maui.IImageButton! imageButton) -> void
static Microsoft.Maui.Handlers.SearchBarHandler.MapFocus(Microsoft.Maui.Handlers.ISearchBarHandler! handler, Microsoft.Maui.ISearchBar! searchBar, object? args) -> void
static Microsoft.Maui.Handlers.SearchBarHandler.MapIsSpellCheckEnabled(Microsoft.Maui.Handlers.ISearchBarHandler! handler, Microsoft.Maui.ISearchBar! searchBar) -> void
static Microsoft.Maui.Handlers.StepperHandler.MapIsEnabled(Microsoft.Maui.Handlers.IStepperHandler! handler, Microsoft.Maui.IStepper! stepper) -> void
Expand Down
1 change: 1 addition & 0 deletions src/Core/src/PublicAPI/net-ios/PublicAPI.Unshipped.txt
Expand Up @@ -68,6 +68,7 @@ static Microsoft.Maui.GridLength.operator !=(Microsoft.Maui.GridLength left, Mic
static Microsoft.Maui.GridLength.operator ==(Microsoft.Maui.GridLength left, Microsoft.Maui.GridLength right) -> bool
static Microsoft.Maui.Handlers.EditorHandler.MapIsSpellCheckEnabled(Microsoft.Maui.Handlers.IEditorHandler! handler, Microsoft.Maui.IEditor! editor) -> void
static Microsoft.Maui.Handlers.EntryHandler.MapIsSpellCheckEnabled(Microsoft.Maui.Handlers.IEntryHandler! handler, Microsoft.Maui.IEntry! entry) -> void
static Microsoft.Maui.Handlers.SearchBarHandler.MapBackground(Microsoft.Maui.Handlers.ISearchBarHandler! handler, Microsoft.Maui.ISearchBar! searchBar) -> void
static Microsoft.Maui.Handlers.SearchBarHandler.MapIsSpellCheckEnabled(Microsoft.Maui.Handlers.ISearchBarHandler! handler, Microsoft.Maui.ISearchBar! searchBar) -> void
static Microsoft.Maui.Layouts.FlexBasis.operator !=(Microsoft.Maui.Layouts.FlexBasis left, Microsoft.Maui.Layouts.FlexBasis right) -> bool
static Microsoft.Maui.Layouts.FlexBasis.operator ==(Microsoft.Maui.Layouts.FlexBasis left, Microsoft.Maui.Layouts.FlexBasis right) -> bool
Expand Down
Expand Up @@ -70,6 +70,7 @@ static Microsoft.Maui.GridLength.operator !=(Microsoft.Maui.GridLength left, Mic
static Microsoft.Maui.GridLength.operator ==(Microsoft.Maui.GridLength left, Microsoft.Maui.GridLength right) -> bool
static Microsoft.Maui.Handlers.EditorHandler.MapIsSpellCheckEnabled(Microsoft.Maui.Handlers.IEditorHandler! handler, Microsoft.Maui.IEditor! editor) -> void
static Microsoft.Maui.Handlers.EntryHandler.MapIsSpellCheckEnabled(Microsoft.Maui.Handlers.IEntryHandler! handler, Microsoft.Maui.IEntry! entry) -> void
static Microsoft.Maui.Handlers.SearchBarHandler.MapBackground(Microsoft.Maui.Handlers.ISearchBarHandler! handler, Microsoft.Maui.ISearchBar! searchBar) -> void
static Microsoft.Maui.Handlers.SearchBarHandler.MapIsSpellCheckEnabled(Microsoft.Maui.Handlers.ISearchBarHandler! handler, Microsoft.Maui.ISearchBar! searchBar) -> void
static Microsoft.Maui.Layouts.FlexBasis.operator !=(Microsoft.Maui.Layouts.FlexBasis left, Microsoft.Maui.Layouts.FlexBasis right) -> bool
static Microsoft.Maui.Layouts.FlexBasis.operator ==(Microsoft.Maui.Layouts.FlexBasis left, Microsoft.Maui.Layouts.FlexBasis right) -> bool
Expand Down

0 comments on commit 741a4e0

Please sign in to comment.