Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25970] Android: 'postlayout' event not working for Picker with type Titanium.UI.PICKER_TYPE_DATE

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2018-05-16T16:35:49.000+0000
Affected Version/sn/a
Fix Version/sRelease 7.3.0
ComponentsAndroid
Labelsn/a
ReporterYordan Banev
AssigneeYordan Banev
Created2018-04-16T15:14:08.000+0000
Updated2018-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(); 

Comments

  1. Yordan Banev 2018-04-17

    PR: https://github.com/appcelerator/titanium_mobile/pull/10005
  2. Lokesh Choudhary 2018-04-17

    FR passed for master. Waiting for CR to pass.
  3. Lokesh Choudhary 2018-05-16

    PR Merged.
  4. Lokesh Choudhary 2018-06-21

    Verified the fix in SDK 7.3.0.v20180618182516. Closing.

JSON Source