[TIMOB-1723] Android: plain picker fires change event immediately.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-05-23T16:26:48.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0, Release 1.7.0, Sprint 2011-20 |
Components | Android |
Labels | android, defect |
Reporter | Bill Dawson |
Assignee | Bill Dawson |
Created | 2011-04-15T03:00:31.000+0000 |
Updated | 2011-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();
(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...
nexus 1 (2.2), g1 (1.6) ipod touch 4.1. closing.
Not resolved for Samsung Galaxy Tab, tested with above use case.
Ivan
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
Associated Helpdesk Ticket
http://appc.me/c/APP-418333Verified fixed with Samsung galaxy Tab and Titanium Studio, build: 1.0.0.201105131803, Titanium SDK version: 1.7.X r86dae2c9.