зеркало из https://github.com/DeGsoft/maui-linux.git
* total fix of issue #3575 we need to check _childView with null also * Update MasterDetailContainer.cs
This commit is contained in:
Родитель
e6af1a513c
Коммит
4db654df07
|
@ -111,9 +111,8 @@ namespace Xamarin.Forms.Platform.Android
|
|||
void DisposeChildRenderers()
|
||||
{
|
||||
IVisualElementRenderer childRenderer = Platform.GetRenderer(_childView);
|
||||
if (childRenderer != null)
|
||||
childRenderer.Dispose();
|
||||
_childView.ClearValue(Platform.RendererProperty);
|
||||
childRenderer?.Dispose();
|
||||
_childView?.ClearValue(Platform.RendererProperty);
|
||||
}
|
||||
|
||||
Rectangle GetBounds(bool isMasterPage, int left, int top, int right, int bottom)
|
||||
|
@ -152,4 +151,4 @@ namespace Xamarin.Forms.Platform.Android
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче