From 0962426f5e223d8e9ae9fb26bcda6a30636e0aa2 Mon Sep 17 00:00:00 2001 From: AhamedAliNishad Date: Fri, 30 Aug 2024 20:25:26 +0530 Subject: [PATCH 1/6] Committed the changes of the issue --- .../Handlers/Android/FrameRenderer.cs | 2 +- .../TestCases.HostApp/Issues/Issue15196.xaml | 15 +++++++++ .../Issues/Issue15196.xaml.cs | 33 +++++++++++++++++++ .../Tests/Issues/Issue15196.cs | 25 ++++++++++++++ 4 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 src/Controls/tests/TestCases.HostApp/Issues/Issue15196.xaml create mode 100644 src/Controls/tests/TestCases.HostApp/Issues/Issue15196.xaml.cs create mode 100644 src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue15196.cs diff --git a/src/Controls/src/Core/Compatibility/Handlers/Android/FrameRenderer.cs b/src/Controls/src/Core/Compatibility/Handlers/Android/FrameRenderer.cs index bb64e53baf5b..70a17fdbb030 100644 --- a/src/Controls/src/Core/Compatibility/Handlers/Android/FrameRenderer.cs +++ b/src/Controls/src/Core/Compatibility/Handlers/Android/FrameRenderer.cs @@ -131,7 +131,7 @@ protected override void Dispose(bool disposing) { var child = GetChildAt(0); child?.RemoveFromParent(); - child?.Dispose(); + child = null; } Element?.Handler?.DisconnectHandler(); diff --git a/src/Controls/tests/TestCases.HostApp/Issues/Issue15196.xaml b/src/Controls/tests/TestCases.HostApp/Issues/Issue15196.xaml new file mode 100644 index 000000000000..138d0807231f --- /dev/null +++ b/src/Controls/tests/TestCases.HostApp/Issues/Issue15196.xaml @@ -0,0 +1,15 @@ + + + + + + + + +