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

Android: AlertDialog: The alert dialog get hidden on tapping on the window outside the alert dialog

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Release 2.1.0
    • Fix Version/s: None
    • Component/s: Android
    • Environment:

      Titanium Studio: 2.1.0.201206172244
      Titanium SDK: 2.1.0.v20120618154152
      Android Device: Android Tab (V3.2), Galaxy Nexus (V4.0.2)
      Runtime: v8

      Description

      An alert dialog is hidden when tapped outside the alert dialog.

      This issue does not occur on Android 2.2

      Not a regression. This occurs as far as 1.8.2

      Steps to reproduce:
      1. Create an application with code below and launch the application
      2. Click anywhere on the window
      3. After the alert dialog appears click anywhere outside the dialog

      Actual: The alert dialog is hidden

      Expected: The behavior should be consistent across Android versions

       

      Ti.UI.setBackgroundColor('white');
      var win = Ti.UI.createWindow(

      { title: 'Click window to test', backgroundColor: 'white', exitOnClose: true, fullscreen: false }

      );
      win.addEventListener('click', function(e){
      var dialog = Ti.UI.createAlertDialog(

      { cancel: 1, buttonNames: ['Confirm', 'Cancel', 'Help'], message: 'Would you like to delete the file?', title: 'Delete' }

      );
      dialog.addEventListener('click', function(e){
      if (e.index === e.source.cancel)

      { alert('The cancel button was clicked'); }

      });
      dialog.show();
      });
      win.open();
      {code]

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ssekhri Satyam Sekhri
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Source Code