Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1723] Android: plain picker fires change event immediately.

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-05-23T16:26:48.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0, Release 1.7.0, Sprint 2011-20
ComponentsAndroid
Labelsandroid, defect
ReporterBill Dawson
AssigneeBill Dawson
Created2011-04-15T03:00:31.000+0000
Updated2011-05-23T16:26:48.000+0000

Description

Doesn't happen in iOS. Easy failcase: app.js:


var win = Titanium.UI.createWindow();
var picker = 
    Ti.UI.createPicker({
        type: Ti.UI.PICKER_TYPE_PLAIN,
        columns: [ Ti.UI.createPickerColumn({
            rows: [ Ti.UI.createPickerRow({title: 'ROW'}) ]
        }) ]
    });
picker.addEventListener('change', function(){alert('changed');});
win.add(picker);
win.open();

Comments

  1. Jeff Haynie 2011-04-15

    (from [023cae136a6bb1e8cec06bab07bc4518cb50d480]) Inhibit our change event when the initial item selected event occurs (which happens just by setting the adapter). [#1723 state:fixed-in-qa] http://github.com/appcelerator/titanium_mobile/commit/023cae136a6bb1e8cec06bab07bc4518cb50d480"> http://github.com/appcelerator/titanium_mobile/commit/023cae136a6bb...

  2. Thomas Huelbert 2011-04-15

    nexus 1 (2.2), g1 (1.6) ipod touch 4.1. closing.

  3. Ivan Skugor 2011-04-15

    Not resolved for Samsung Galaxy Tab, tested with above use case.

    Ivan

  4. Jon Alter 2011-05-20

    Reopening this issue, confirmed it exists in 1_7_X May 20 2011 14:16 (fa01fbbd). As per Thomas, assigning to Don for triage/assignment. Tested with Android 2.3, 3.0.1 simulators and Galaxy Tab 2.2.1
  5. Jon Alter 2011-05-20

    Associated Helpdesk Ticket

    http://appc.me/c/APP-418333
  6. Eric Merriman 2011-05-23

    Verified fixed with Samsung galaxy Tab and Titanium Studio, build: 1.0.0.201105131803, Titanium SDK version: 1.7.X r86dae2c9.

JSON Source