{ "id": "171433", "key": "TIMOB-25917", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-07-09T23:52:35.000+0000", "created": "2018-03-30T13:15:35.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "parity", "picker" ], "versions": [ { "id": "19957", "description": "", "name": "Release 7.1.0", "archived": false, "released": true, "releaseDate": "2018-03-14" } ], "issuelinks": [], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2018-07-09T23:52:38.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" }, { "id": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "On iOS it is possible to change the minDate/maxDate on runtime, on Android this is not possible due to TiSDK constraint in the code. \r\n\r\nTest code\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n title: 'Form',\r\n});\r\n\r\n/*\r\n// working\r\nvar dp = Ti.UI.createPicker({\r\n type: Ti.UI.PICKER_TYPE_DATE,\r\n minDate: new Date(2018,1,1)\r\n});\r\n*/\r\n\r\nvar dp = Ti.UI.createPicker({\r\n type: Ti.UI.PICKER_TYPE_DATE\r\n});\r\n\r\n// not working\r\ndp.setMinDate(new Date(2018,1,1));\r\n\r\nwin.add(dp);\r\ndp.showDatePickerDialog();\r\nwin.open();\r\n{code}\r\n\r\n*Observed Behaviour:*\r\nSetting minDate on creation works, adjusting it after doesn't\r\n\r\n*Expected behaviour*: \r\nOn Android setting minDate/maxDate on runtime (after creation) should work as it does on iOS.\r\n\r\n*Community Credit*:\r\nJoren Vos for finding the issue, Michael Gangolf for helping locating the problem/creating test code.", "attachment": [], "flagged": false, "summary": "Android: Allow picker minDate/maxDate properties to be set dynamically", "creator": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "environment": "TiSDK 7.1.0.GA\r\nAndroid", "closedSprints": [ { "id": 1050, "state": "closed", "name": "2018 Sprint 14 SDK", "startDate": "2018-07-01T18:40:57.193Z", "endDate": "2018-07-15T18:40:00.000Z", "completeDate": "2018-07-16T03:27:08.720Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "436864", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/10000", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2018-04-13T12:46:36.000+0000", "updated": "2018-04-13T12:46:36.000+0000" }, { "id": "437231", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. PR Merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-30T22:13:00.000+0000", "updated": "2018-04-30T22:13:00.000+0000" }, { "id": "438366", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket. Fix can be seen in SDK Version: 7.3.0.v20180607210411\r\n\r\nTest and other information can be found at: \r\nhttps://github.com/appcelerator/titanium_mobile/pull/10000", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-12T19:32:15.000+0000", "updated": "2018-06-12T19:32:15.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }