Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing SymbolDisplay appearing like dots on certain Android devices #603

Merged
merged 8 commits into from
Sep 19, 2024
6 changes: 5 additions & 1 deletion src/Toolkit/Toolkit.Maui/SymbolDisplay/SymbolDisplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,12 @@ private async Task UpdateSwatchAsync()
image.MaximumWidthRequest = imageData.Width / scale;
image.MaximumHeightRequest = imageData.Height / scale;
image.Source = await imageData.ToImageSourceAsync();
SourceUpdated?.Invoke(this, EventArgs.Empty);
SourceUpdated?.Invoke(this, EventArgs.Empty);
#pragma warning restore ESRI1800
#if ANDROID
this.MinimumWidthRequest = imageData.Width / scale;
this.MinimumHeightRequest = imageData.Height / scale;
#endif
prathameshnarkhede marked this conversation as resolved.
Show resolved Hide resolved
}
catch
{
Expand Down
Loading