[TIMOB-25919] Android: OptionDialog not firing "click" event for cancel button like iOS
GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-06-28T22:50:20.000+0000 |
Affected Version/s | Release 7.1.0 |
Fix Version/s | Release 7.3.0 |
Components | Android |
Labels | OptionDialog, android, parity |
Reporter | Victor Vazquez Montero |
Assignee | Gary Mathews |
Created | 2018-03-30T18:36:09.000+0000 |
Updated | 2018-06-28T22:50:25.000+0000 |
Description
Issue:
Customer is having and issue with the ClickEvent of a Ti.UI.OptionDialog in Android. If 'cancel' property is set to an index, clicking that cancel option or clicking outside the dialog doesn't fire the dialog's 'click' event. This is the behavior in SDK 7.1.0.GA whereas it is working fine in SDK 6.2.2.GA.
h5: App:
[^TestInputDialog.zip]
Steps to reproduce:
1. Run the attached project - TestInputDialog in Android.
2. Click on 'Hello World' text. OptionDialog will be displayed.
3. Click on 'Cancel' option in the dialog. Log statement in the dialog's corresponding click event handler will not be displayed in console.
4. Dismiss dialog by clicking outside the dialog. Click event of the dialog will not be triggered
4. Remove 'cancel' property in the dialog options while creating it(line 8 in index.js) and repeat the above steps.
5. Clicking the 'Cancel' option or anywhere outside the dialog will print the log statement.
Attachments
master: https://github.com/appcelerator/titanium_mobile/pull/9979
FR Passed. PR merged.
[~jquick], Yes I checked & it fires the "click" event when we cancel using back button or tapping anywhere on the screen apart from the options dialog.
Verified the fix in SDK 7.3.0.v20180618182516. Closing.