Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-3005

OptionDialog event click return strange datas when pressing back button in Android

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Needs more info
    • Affects Version/s: None
    • Component/s: Titanium SDK & CLI
    • Environment:

      Mac OSX
      Titanium SDK 1.7.1
      Android Simulator "APIs 2.3.3"

      Description

      A simple code to reproduce the bug :

      var dialog = Titanium.UI.createOptionDialog(

      { options : ['hello', 'world', 'how', 'do', 'you', 'do'], selectedIndex : 1 }

      );

      dialog.addEventListener('click',function(e)

      { Ti.API.info(e.index); }

      );

      When pressing the hardware back button, console log displays : [INFO] [33940,57185] -2.68435457E8 Where -2.68435457E8 is the value of e.index.

      I don't think click event should even trigger in this case.

        Attachments

          Activity

            People

            • Assignee:
              tguntharp Tony Guntharp
              Reporter:
              amas@einden.com Adrien Mas
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code