{ "id": "144286", "key": "TIMOB-18514", "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": [], "resolution": null, "resolutiondate": null, "created": "2015-02-05T04:09:33.000+0000", "priority": null, "labels": [ "android", "api" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:43.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Android does not return boolean editable status, same code works on iOS.\r\n\r\nActual result:\r\n[INFO] : undefined\r\n[INFO] : undefined\r\n\r\nCorrect result:\r\n[INFO] : true\r\n[INFO] : true\r\n\r\n---> index.xml\r\n\r\n\t\r\n\t\tHello, World\r\n\t\r\n\r\n\r\n---> index.js\r\nfunction doClick(e) {\r\n alert($.label.value);\r\n\tTi.API.info($.label.editable);\r\n\tTi.API.info($.label.getEditable());\r\n}\r\n\r\n$.index.open();\r\n", "attachment": [], "flagged": false, "summary": "Android: TextField.editable will Return undefined if do not set editable value, works well in IOS", "creator": { "name": "melvinchia", "key": "melvinchia", "displayName": "Melvin Chia", "active": true, "timeZone": "Asia/Shanghai" }, "subtasks": [], "reporter": { "name": "melvinchia", "key": "melvinchia", "displayName": "Melvin Chia", "active": true, "timeZone": "Asia/Shanghai" }, "environment": "Phone: Samsung Note 2\r\nPlatform: Android 4.3\r\nTitanium Studio: 3.4.1.201410281727\r\nTitanium SDK: 3.5.0.GA (tested 3.4.1.GA with same result)", "comment": { "comments": [ { "id": "342199", "author": { "name": "melvinchia", "key": "melvinchia", "displayName": "Melvin Chia", "active": true, "timeZone": "Asia/Shanghai" }, "body": "If editable is initialised in index.js beforehand, it works as intended on Android.\r\n\r\nResult:\r\n[INFO] : true\r\n[INFO] : true\r\n\r\n---> index.js\r\nfunction doClick(e) {\r\n alert($.label.value);\r\n\tTi.API.info($.label.editable);\r\n\tTi.API.info($.label.getEditable());\r\n}\r\n\r\nif ($.label.getEditable == undefined) {\r\n $.label.editable = true;\r\n}\r\n$.index.open();\r\n", "updateAuthor": { "name": "melvinchia", "key": "melvinchia", "displayName": "Melvin Chia", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2015-02-05T04:41:27.000+0000", "updated": "2015-02-05T04:42:09.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }