зеркало из https://github.com/DeGsoft/maui-linux.git
[Android] If drawable doesn't exist don't dispose of it (#4904)
This commit is contained in:
Родитель
1c27d0bcff
Коммит
884d4a4e14
|
@ -112,6 +112,7 @@ namespace Xamarin.Forms.Platform.Android
|
|||
{
|
||||
var drawable = await Context.GetFormsDrawable(source);
|
||||
menuItem.SetIcon(drawable);
|
||||
drawable?.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -362,7 +362,7 @@ namespace Xamarin.Forms.Platform.Android
|
|||
return;
|
||||
var drawable = await Context.GetFormsDrawable(source);
|
||||
menuItem.SetIcon(drawable);
|
||||
drawable.Dispose();
|
||||
drawable?.Dispose();
|
||||
}
|
||||
|
||||
void SetupMenu()
|
||||
|
|
Загрузка…
Ссылка в новой задаче