{ "id": "150355", "key": "TIMOB-19345", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-09-29T02:44:45.000+0000", "created": "2015-08-12T23:35:00.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "datepicker", "parity" ], "versions": [], "issuelinks": [ { "id": "48879", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "147344", "key": "TIMOB-19192", "fields": { "summary": "Android: Date & Time Picker change event not fired nor is picker.value updated", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-01-13T23:18:14.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h6.Issue Description\r\nThis issues does not occur on iOS. If you run the test case on Jelly Bean devices the change event is fired as expected. \r\n\r\nh6.Tested on\r\niOS 8.1: Change event works\r\nDroid Razr 4.1.2: Change event works\r\nMoto G 5.0.2: Change event didn't work\r\n\r\nh6.Test Case\r\n{code}\r\nTi.UI.backgroundColor = 'white';\r\nvar win = Ti.UI.createWindow({\r\n exitOnClose : true,\r\n});\r\n\r\nvar datePicker = Ti.UI.createPicker({\r\n top: 100,\r\n height : Ti.UI.SIZE,\r\n width : Ti.UI.FILL,\r\n type : Ti.UI.PICKER_TYPE_DATE,\r\n minDate : new Date(),\r\n value : new Date(),\r\n color : \"#000\",\r\n});\r\n\r\ndatePicker.addEventListener('change', function(e) {\r\n alert(e.value);\r\n Ti.API.info(e.value);\r\n});\r\nwin.add(datePicker);\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "56411", "filename": "Android_JellyBean_Picker.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-12T23:33:13.000+0000", "size": 20246, "mimeType": "image/png" }, { "id": "56410", "filename": "Android_Lollipop_Picker.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-12T23:33:19.000+0000", "size": 45457, "mimeType": "image/png" }, { "id": "56412", "filename": "iOS_Picker.png", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-12T23:33:08.000+0000", "size": 48822, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: DatePicker change event does not fires in Lollipop", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 4.1.0.GA\r\nAndroid Lollipop", "closedSprints": [ { "id": 494, "state": "closed", "name": "2015 Sprint 20 SDK", "startDate": "2015-09-26T00:29:19.845Z", "endDate": "2015-10-10T00:29:00.000Z", "completeDate": "2015-10-12T05:33:30.964Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "360101", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can see the issue both on android 4.X & 5.0.1. \r\nAndroid 5.1.1 has the calendar type data picker & did not show this issue.\r\n\r\nEnvironment:\r\nAppc Studio : 4.2.0.201508062204\r\nTi SDK : 4.2.0.v20150817002027, 4.1.0.GA\r\nTi CLI : 4.1.4\r\nAlloy : 1.6.2\r\nMAC Yosemite : 10.10.4\r\nAppc NPM : 4.1.0\r\nAppc CLI : 4.2.0-54\r\nNode: v0.10.37\r\nNexus 6- Android 5.0.1\r\nNexus 5 - Android 5.1.1\r\nSamsung Galaxy S4 - Android 4.4.2\r\n\r\n\r\n\r\n ", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-17T21:27:53.000+0000", "updated": "2015-08-17T21:27:53.000+0000" }, { "id": "362155", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-09-03T07:35:13.000+0000", "updated": "2015-09-03T07:35:13.000+0000" }, { "id": "362254", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~lchoudhary] if this is indeed a duplicate of TIMOB-19192 and the behaviour is the same, can I close this as duplicate and continue this in TIMOB-19192?", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-09-04T02:54:11.000+0000", "updated": "2015-09-04T02:54:11.000+0000" }, { "id": "365159", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "\"change\" event should only fire once. Even though this is a native bug for certain Android versions, we should still fix it.\r\nmaster PR: https://github.com/appcelerator/titanium_mobile/pull/7240", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-28T23:03:21.000+0000", "updated": "2015-09-28T23:03:21.000+0000" }, { "id": "365177", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Merged PR", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-09-29T02:45:05.000+0000", "updated": "2015-09-29T02:45:05.000+0000" }, { "id": "365178", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-09-29T02:45:56.000+0000", "updated": "2015-09-29T02:45:56.000+0000" }, { "id": "365592", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\nThe change event is fired as expected in lollipop.\r\nChecked using the code in the description.\r\n\r\nClosing\r\n\r\nEnvironment:\r\nAppc Studio : 4.3.1.201509302304\r\nTi SDK : 5.1.0.v20151001150432\r\nTi CLI : 5.0.3\r\nAlloy : 1.7.10\r\nMAC Yosemite : 10.10.4\r\nAppc NPM : 4.2.0\r\nAppc CLI : 5.0.2\r\nNode: v0.10.37\r\nNexus 5 - Android 5.0\r\nAndroid 4.4.4", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-01T23:05:24.000+0000", "updated": "2016-01-13T23:17:57.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }