Skip to content

Commit

Permalink
Code cleanup, hoping tests work on CI after?
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpeppers committed Aug 8, 2023
1 parent 0708af8 commit 1bd2039
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Core/src/Handlers/SearchBar/SearchBarHandler.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ void OnSearchButtonClicked(object? sender, EventArgs e)

void OnTextPropertySet(object? sender, UISearchBarTextChangedEventArgs a)
{
if (VirtualView is ISearchBar virtualView && sender is MauiSearchBar platformView)
if (VirtualView is ISearchBar virtualView)
{
virtualView.UpdateText(a.SearchText);

Expand All @@ -230,8 +230,8 @@ bool ShouldChangeText(UISearchBar searchBar, NSRange range, string text)

void OnEditingStarted(object? sender, EventArgs e)
{
if (VirtualView is not null)
VirtualView.IsFocused = true;
if (VirtualView is ISearchBar virtualView)
virtualView.IsFocused = true;
}

void OnEditingChanged(object? sender, EventArgs e)
Expand All @@ -244,8 +244,8 @@ void OnEditingChanged(object? sender, EventArgs e)

void OnEditingStopped(object? sender, EventArgs e)
{
if (VirtualView is not null)
VirtualView.IsFocused = false;
if (VirtualView is ISearchBar virtualView)
virtualView.IsFocused = false;
}
}
}
Expand Down

0 comments on commit 1bd2039

Please sign in to comment.