Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NUI] Remove basehandle usage at Accessibility static #5675

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

hinohie
Copy link
Contributor

@hinohie hinohie commented Oct 30, 2023

Since we try to resolve some unusual behavior of BaseHandle, the dummyHandle in Accessibility can give us some confuse logs.

Actually, we don't need to hold it as BaseHandle type. we only need this as object type. So, let we make it as object, instead of BaseHandle.

@hinohie
Copy link
Contributor Author

hinohie commented Oct 30, 2023

@Seoyeon2Kim @lol-github @aswigon @m-bialota
Could you check this PR please? It will remove some useless BaseHandle creation before NUI Application initialized.

Copy link
Contributor

@aswigon aswigon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I've just checked that GetInstanceSafely<T> only requires T to be a subclass of BaseHandle, but its parameter can simply be object, so there should be no semantic change with this patch.

public static T GetInstanceSafely<T>(this object wrapper, IntPtr cPtr) where T : BaseHandle

Copy link
Contributor

@loleksak loleksak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dongsug-song
Copy link
Contributor

The TizenFX master branch has been changed for API12(tizen_9.0).
So the DevelNUI branch also did a hard reset with the master branch to sync this.
I think you need to rebase this PR or re-upload the new PR.
I am sorry for the inconvenience.

Since we try to resolve some unusual behavior of BaseHandle,
the dummyHandle in Accessibility can give us some confuse logs.

Actually, we don't need to hold it as BaseHandle type. we only need this
as object type. So, let we make it as object, instead of BaseHandle.

Signed-off-by: Eunki, Hong <[email protected]>
@hinohie hinohie force-pushed the accessible_static_object branch from f494fc3 to 40538ce Compare October 30, 2023 14:38
@hinohie
Copy link
Contributor Author

hinohie commented Oct 31, 2023

Hard reset done :D

Copy link
Contributor

@dongsug-song dongsug-song left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@dongsug-song dongsug-song merged commit e0c661f into Samsung:DevelNUI Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants