Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25919] Android: OptionDialog not firing "click" event for cancel button like iOS

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2018-06-28T22:50:20.000+0000
Affected Version/sRelease 7.1.0
Fix Version/sRelease 7.3.0
ComponentsAndroid
LabelsOptionDialog, android, parity
ReporterVictor Vazquez Montero
AssigneeGary Mathews
Created2018-03-30T18:36:09.000+0000
Updated2018-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

FileDateSize
TestInputDialog.zip2018-03-30T18:35:48.000+00009413212

Comments

  1. Gary Mathews 2018-04-02

    master: https://github.com/appcelerator/titanium_mobile/pull/9979
  2. Lokesh Choudhary 2018-04-18

    FR Passed. PR merged.
  3. Joshua Quick 2018-04-19

  4. Lokesh Choudhary 2018-04-19

    [~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.
  5. Lokesh Choudhary 2018-06-19

    Verified the fix in SDK 7.3.0.v20180618182516. Closing.

JSON Source