[NUI][API10] DetachAccessibleObject at Dispose time well (#5901)
authorSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Wed, 24 Jan 2024 04:15:56 +0000 (13:15 +0900)
committerGitHub <noreply@github.com>
Wed, 24 Jan 2024 04:15:56 +0000 (13:15 +0900)
commitc2a914ec13881287bd6fb67f16e9e8bdd8e8064a
tree53f4b106d17a2a8d33067ea9106d63e57ff5f85a
parenta2b7b56fbdb339c3565d1a2e1cbf63fc35d66695
[NUI][API10] DetachAccessibleObject at Dispose time well (#5901)

There were several problems when we call DaliAccessibilityDetachAccessibleObject
at Dispose(bool) function

 - It will detach accessibility even if view doesn't own the handle memory
 - Dispose(bool) can be called at worker thread (during GC) so we need to check thread here

Make to `DaliAccessibilityDetachAccessibleObject` function at Dispose(DisposeTypes)
so that we can ensure it called at main thread clearly.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Co-authored-by: Eunki, Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI/src/internal/Interop/NDalicPINVOKE.cs
src/Tizen.NUI/src/public/BaseComponents/ViewAccessibility.cs
src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs