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

BlackBerry : We get same index for 'OK' & 'Cancel' button on an alert dialog

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: BlackBerry
    • Environment:

      Environment:
      Ti Studio : 3.1.1.201304122013
      Ti BB SDK : 3.2.0.v20130412191647
      Mac OSX : 10.8.2
      win 7
      Win 8
      BB simulator : 10.0.10.261
      Z10 device running 10.0.10.88

      Description

      Description:
      1. Create an app for BB
      2. Replace the code in the app.ja with the following code:

      Ti.API.info('running');
       
      var win = Ti.UI.createWindow({backgroundColor: 'red'});
      win.open();
       
      function showAlert() {
          Ti.API.info('opening alert...');
          var alert1 = Ti.UI.createAlertDialog({
              title: 'Click a button...'
          });
          alert1.addEventListener('click', function(e) {
              alert('index = ' + e.index);
          });
          alert1.show();
      }
       
      setTimeout(showAlert, 2000);
      

      2. Build & run on BB device/simulator
      3. The app launches
      4. You will get an alert dialog qith a dialog 'click a button'
      5. After taping on OK 0r Cancel button on the first alert dialog you will get another alert dialog with the index of the tapped button

      Actual Result:
      1.Notice that tapping on both OK or Cancel gives us the same index i.e '0'

      Expected Result;
      1. Both the OK & Cancel buttons should not have same index.

        Attachments

          Activity

            People

            • Assignee:
              joshroesslein Josh Roesslein
              Reporter:
              lokeshchdhry Lokesh Choudhary (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration