Skip to content

Commit

Permalink
- fix disconnects founds
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWeen committed Jul 12, 2022
1 parent 965c918 commit b68f80a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Core/src/Handlers/Image/ImageHandler.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected override void DisconnectHandler(UIImageView platformView)
{
base.DisconnectHandler(platformView);

if (PlatformView is MauiImageView imageView)
if (platformView is MauiImageView imageView)
imageView.WindowChanged -= OnWindowChanged;

SourceLoader.Reset();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ protected override void ConnectHandler(View platformView)

protected override void DisconnectHandler(View platformView)
{
AppCompatRadioButton? platformRadioButton = GetPlatformRadioButton(this);
if (platformRadioButton != null)
if (platformView is AppCompatRadioButton platformRadioButton)
platformRadioButton.CheckedChange -= OnCheckChanged;
}

Expand Down

0 comments on commit b68f80a

Please sign in to comment.