[NUI] DetachAccessibleObject at Dispose time well
authorEunki, Hong <eunkiki.hong@samsung.com>
Fri, 10 Nov 2023 07:53:52 +0000 (16:53 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Wed, 15 Nov 2023 07:09:04 +0000 (16:09 +0900)
commit73a8119a8d47ac59055600e4ba34096468fb9603
tree53c4f7b0beae71872ffd46fc837e247557d5886f
parent3f53e2a98fd3f376fd3d5db7c3879472b170e581
[NUI] DetachAccessibleObject at Dispose time well

There was several problem when we call DaliAccessibilityDetachAccessibleObject
at Dispose(bool) function

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

I make to DaliAccessibilityDetachAccessibleObject function at Dispose(DisposeTypes)
that we can ensure it called at main thread clearly.

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