[TIMOB-23578] Android 4.3: Error - Handle double clicked on views. (android)
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-03-30T20:46:37.000+0000 |
Affected Version/s | Release 5.2.1, Release 5.2.2 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Neeraj Mishra |
Assignee | Ashraf Abu |
Created | 2016-06-29T23:09:41.000+0000 |
Updated | 2017-03-30T20:46:43.000+0000 |
Description
Issue Description
If we do a double click on a button, it opens two windows. This only happens in Android ver 4.3 and API 18. We tested on latest version of Android and do not see any issue.
Steps to Reproduce
1. Create a new Appcelerator alloy project for Android
2. Copy the view directory files into the new project created.(views.zip attached)
3. Copy the Controller directory files into the new project.(controllers.zip attached)
4. Copy the style directory files into the project.(styles.zip attached)
Expected Results
Clicking on button should create only single window
Attachments
Tested on an API 18 emulator. Able to reproduce.
Classic app code:
[~nmishra] This is a workaround as it's an API 18 specific issue. In your
index.xml
code, add an id to your button:and in your
index.js
code, use this:What's happening is that in API 18, it seems that the system is slower and hence after you click the button, the new window is not opened yet and there is a split second you can click it again to open the window. This workaround disables the button for that split second and enables it back again. Please give it a try. I'll resolve this issue if this works for you.
Closing ticket as "Won't Fix". There has been no update for a while. If there is any problem, please open a new ticket.