[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 08:56:46 +0000 (17:56 +0900)
commitf400926fdd78155ccbf897862c569b436e51ef31
treef04dab03d2bb34dbe34e32b6995123c756d3c8fe
parentfea27e996d5ac33b446ca13504ede09524f2dab9
[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