Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25919

Android: OptionDialog not firing "click" event for cancel button like iOS

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 7.1.0
    • Fix Version/s: Release 7.3.0
    • Component/s: Android
    • Environment:
    • Story Points:
      2
    • Sprint:
      2018 Sprint 07 SDK, 2018 Sprint 08 SDK

      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

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                vvazquezmontero Victor Vazquez Montero
                Reviewer:
                Joshua Quick
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-6274
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code