{ "id": "150424", "key": "AC-303", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-11-14T00:56:21.000+0000", "created": "2015-08-14T14:19:56.000+0000", "labels": [ "android-5", "datepicker", "lollipop" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-11-14T00:56:21.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "Using the example code found in the Kitchen Sink shown below the selection made on the calendar has no effect. The changed event listener doesn't detect any interaction. On Android 5.1 the code works fine. All versions before 5.0 use the Android UI spinner not the 'usespinner:true' version and work fine.\r\n\r\n{code:javascript}\r\n\r\n\tvar minDate = new Date();\r\n\tminDate.setFullYear(2009);\r\n\tminDate.setMonth(0);\r\n\tminDate.setDate(1);\r\n\t\r\n\tvar maxDate = new Date();\r\n\tmaxDate.setFullYear(2009);\r\n\tmaxDate.setMonth(11);\r\n\tmaxDate.setDate(31);\r\n\t\r\n\tvar value = new Date();\r\n\tvalue.setFullYear(2009);\r\n\tvalue.setMonth(0);\r\n\tvalue.setDate(1);\r\n\t\r\n\tvar picker = Ti.UI.createPicker({\r\n\t\ttype:Ti.UI.PICKER_TYPE_DATE,\r\n\t\tminDate:minDate,\r\n\t\tmaxDate:maxDate,\r\n\t\tvalue:value,\r\n\t\tcalendarViewShown: false\r\n\t});\r\n\t\r\n\t// turn on the selection indicator (off by default)\r\n\tpicker.selectionIndicator = true;\r\n\t\r\n\tpicker_Win.add(picker);\r\n\t\r\n\tvar label = Ti.UI.createLabel({\r\n\t\ttext:'Choose a date',\r\n\t\ttop:6,\r\n\t\twidth:'auto',\r\n\t\theight:'auto',\r\n\t\ttextAlign:'center',\r\n\t\tcolor:'white'\r\n\t});\r\n\tpicker_Win.add(label);\r\n\t\r\n\tpicker.addEventListener('change',function(e)\r\n\t{\r\n\t\tlabel.text = e.value.toLocaleString();\r\n\t});\r\n{code}", "attachment": [ { "id": "56430", "filename": "Screen Shot 2015-08-13 at 20.46.34.png", "author": { "name": "paulflood", "key": "paulflood", "displayName": "Paul Flood", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-14T14:17:38.000+0000", "size": 65043, "mimeType": "image/png" } ], "flagged": false, "summary": "Date Picker (Calendar View) on Android 5.0 not detecting selection.", "creator": { "name": "paulflood", "key": "paulflood", "displayName": "Paul Flood", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "paulflood", "key": "paulflood", "displayName": "Paul Flood", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Building on Mac OS X Yosemite\r\nTi SDK 4.1\r\nAppcelerator Studio 4.2.0.201508062204\r\nOnly an issue on Android 5.0.X\r\nTheme: @style/Theme.Titanium\r\n\r\nBug found on all device I have running 5.0.X:\r\nGalaxy S6\r\nMoto G\r\nGenymotion Emulator", "comment": { "comments": [ { "id": "359908", "author": { "name": "paulflood", "key": "paulflood", "displayName": "Paul Flood", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Found a workaround for this but the calendar view issue is still there. Details on the workaround are here https://community.appcelerator.com/topic/2989/android-5-0-datepicker-not-working/2.", "updateAuthor": { "name": "paulflood", "key": "paulflood", "displayName": "Paul Flood", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-08-14T15:42:12.000+0000", "updated": "2015-08-14T15:42:12.000+0000" }, { "id": "370185", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "body": "Tested this issue in our updated environment. Date Picker *change* event is now working for android 5.0.0 with latest SDK. I tested this using the 5.1.0.v20151104190037 and Google Nexus 6 - 5.0.0 - API 21 - 1440x2560.\r\n\r\n *change* event log\r\n{code}\r\n[INFO] : chenged\r\n[INFO] : chenged\r\n[INFO] : chenged\r\n[INFO] : chenged\r\n[INFO] : chenged\r\n{code}\r\n*Environment*\r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.10.5\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 0.10.37\r\n npm Version = 1.4.28\r\nTitanium CLI\r\n CLI Version = 5.0.5\r\nTitanium SDK\r\n SDK Version = 5.1.0.v20151104190037\r\n SDK Path = /Users/Library/Application Support/Titanium/mobilesdk/osx/5.1.0.v20151104190037\r\n Target Platform = android\r\n{code} \r\n", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-11-13T07:25:24.000+0000", "updated": "2015-11-14T00:55:31.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }