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

Click Listeners on Views Not Working #432

Open
otoo-peacemaker opened this issue Oct 16, 2024 · 3 comments
Open

Click Listeners on Views Not Working #432

otoo-peacemaker opened this issue Oct 16, 2024 · 3 comments

Comments

@otoo-peacemaker
Copy link

I am experiencing an issue where none of the click listeners (e.g., for Button, TextView, etc.) in my application are functioning as expected. I suspect this may be caused by the SDK potentially interfering with or controlling certain parts of the view hierarchy, as I am following the provided code samples.

Could the SDK be intercepting or affecting touch events in a way that prevents click events from being propagated to child views? If so, are there any recommendations or adjustments I can make to ensure that click listeners work correctly across all views in my app?

Any insights or suggestions would be greatly appreciated!

@dji-dev
Copy link
Contributor

dji-dev commented Oct 17, 2024

Agent comment from yating.liao in Zendesk ticket #119608:

I think the likelihood of MSDK V5 affecting the view layer is quite low.
If MSDK V5 were to cause interference, the sample code should have special handling for the view, but it appears that it does not.

Does your application run normally after removing MSDK V5? Which version?

°°°

@otoo-peacemaker
Copy link
Author

When removing the SDK (the tried versions 5.8.0 and 5.10.0), my application works fine. However, when using 5.10.0, button clicks require additional logic, such as adding an OnTouchListener to handle touch events before the OnClickListener works properly:

binding.btnOpen.setOnTouchListener { ... }

This issue affects all child views as well. It seems like the MSDK or the UXSDK might be interfering with event propagation.

@dji-dev
Copy link
Contributor

dji-dev commented Oct 18, 2024

Agent comment from yating.liao in Zendesk ticket #119608:

Is your project using the uxsdk library? If so, you can consider removing the UXSDK library first. The UXSDK library uses kotlin-android-extensions, not ViewBinding.

°°°

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants