airsdk / Adobe-Runtime-Support

Report, track and discuss issues in Adobe AIR. Monitored by Adobe - and HARMAN - and maintained by the AIR community.
202 stars 11 forks source link

On Android - Dropdown on StageWebView doesn't work #3446

Open dkjurchiska opened 1 month ago

dkjurchiska commented 1 month ago

Before reporting this issue:

With the older SDK and target SDK, everything works well.

The issue occurs only on Android devices with the app targeting SDK 34. In StageWebView, when trying to select an option from a dropdown, the dropdown appears and disappears immediately, making it impossible to choose an option.

I am using AIR SDK 51.1.1. Due to an ANE, I updated Java to Java 17 and build-tools to 34.

dkjurchiska commented 1 week ago

I've created a simple dropdown StageWebView project. Could you please take a look? We've received some complaints about it. It uses AIR Harman 51.1.1 and the updated Gradle tools.

testDropDown.zip

ajwfrost commented 1 week ago

Thanks for the details and test case. Yes, it seems like this is another issue that's been triggered by the window focus handling updates as part of NativeWindow support on Android: because of the way the options dropdown is appearing as a separate pop-up, it makes AIR think it's lost focus, and now we seem to be causing the WebView to lose focus too...

See also https://github.com/airsdk/Adobe-Runtime-Support/issues/3330#issuecomment-2248669311

Will have a check of this: the above was a StageText issue, and we may be able to do a similar fix to resolve this also for StageWebView...

thanks

dkjurchiska commented 1 week ago

Thank you for the update and explanation regarding the issue. Could you please provide an estimated time for when the fix or potential workaround might be available?

Best regards

ajwfrost commented 4 days ago

Hi @dkjurchiska - we're looking to get a new release out at the end of next week, but in the meantime, the below zip should include the "runtimeClasses.jar" file that can be put over a 51.1.1.5 release in the "lib/android/lib" folder, and includes just this specific fix.

thanks runtimeClasses.zip