Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected override void OnDetachedFrom(View bindable, AView platformView)
{
base.OnDetachedFrom(bindable, platformView);

ClearTintColor(bindable, platformView);
ClearTintColor();
bindable.PropertyChanged -= OnElementPropertyChanged;
PropertyChanged -= OnTintedImagePropertyChanged;
}
Expand Down Expand Up @@ -114,9 +114,14 @@ void OnElementPropertyChanged(object? sender, PropertyChangedEventArgs args)
ApplyTintColor();
}

void ClearTintColor(View element, AView control)
void ClearTintColor()
{
switch (control)
if (nativeView is null)
{
return;
}

switch (nativeView)
{
case ImageView image:
image.ClearColorFilter();
Expand Down