[TIMOB-25970] Android: 'postlayout' event not working for Picker with type Titanium.UI.PICKER_TYPE_DATE
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-05-16T16:35:49.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 7.3.0 |
Components | Android |
Labels | n/a |
Reporter | Yordan Banev |
Assignee | Yordan Banev |
Created | 2018-04-16T15:14:08.000+0000 |
Updated | 2018-06-21T17:39:28.000+0000 |
Description
Picker with type Titanium.UI.PICKER_TYPE_DATE does not fire
postlayout
after showDatePickerDialog()
is called.
It is the same for Picker added in the layout for Android Lollipop (API level 19) or newer. For API level below 19, Picker added in the layout the event is fired twice.
*Test case:*
_app.js_
var win = Ti.UI.createWindow();
picker = Ti.UI.createPicker({type: Ti.UI.PICKER_TYPE_DATE});
picker.addEventListener('postlayout', function() {
alert('Post layout!');
});
win.add(picker);
win.open();
//picker.showDatePickerDialog();
PR: https://github.com/appcelerator/titanium_mobile/pull/10005
FR passed for master. Waiting for CR to pass.
PR Merged.
Verified the fix in SDK 7.3.0.v20180618182516. Closing.