{ "id": "93947", "key": "TIMOB-9807", "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": "13573", "description": "Sprint 2012-15 API", "name": "Sprint 2012-15 API", "archived": true, "released": true, "releaseDate": "2012-07-30" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": null, "resolutiondate": null, "created": "2012-06-26T16:55:23.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_textfield", "parity", "qe-review", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:07.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "As of now (Release 2.1.0), autoLink constants have 2 different namespaces (for iOS and Android), ie. Ti.UI.iOS.AUTODETECT_ALL vs Ti.UI.Android.LINKIFY_ALL. We need to create a new common namespace for these constants. \r\n\r\nTest Code: Run this on both Android/iOS to confirm behavior\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : \"white\"\r\n});\r\n \r\nvar ta = Ti.UI.createTextArea({\r\n left:5, top: 5, right: 5, height: 180,\r\n editable: false, // this needs to be set to false, otherwise data detection type will fail\r\n backgroundColor:'#ccc',\r\n autoLink: Titanium.UI.AUTOLINK_ALL,\r\n value:'Contact\\n test@test.com\\n 817-555-5555\\n http://bit.ly\\n 444 Castro Street, Mountain View, CA'\r\n});\r\n \r\nvar b1 = Ti.UI.createButton({title: \"Click me!\"});\r\nb1.addEventListener('click', function(e) {\r\n\tta.autoLink = Titanium.UI.AUTOLINK_NONE;\r\n});\r\nwin.add(ta);\r\nwin.add(b1);\r\n\r\nwin.open();\r\n{code}\r\n\r\n1. Run code - You should see 4 links\r\n2. Click on button - You should see 0 links.", "attachment": [], "flagged": false, "summary": "Android: Create a common namespace for autoLink property in TextArea", "creator": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "209766", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull merged.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-26T14:18:33.000+0000", "updated": "2012-07-26T14:18:33.000+0000" }, { "id": "214930", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nSDK:2.2.0.v20120816212512\r\nStudio:2.1.1.201207271312\r\nDevices: iOS simulator, Samsung galaxy note(android v 2.3.6)\r\n\r\nAutolink property works well in textarea.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-16T23:07:13.000+0000", "updated": "2012-08-16T23:07:13.000+0000" }, { "id": "218620", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-12T03:13:19.000+0000", "updated": "2012-09-12T03:13:19.000+0000" }, { "id": "278595", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4863\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-07T05:33:38.000+0000", "updated": "2013-11-07T05:33:38.000+0000" }, { "id": "429520", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Originally tested by Samir during 6.3.0 Mac-Android regression tests and found that this problem exists with 6.3.0. I checked on my own and reproduced Samir's findings with Android. With iOS, the app works as expected. After pressing the button \"Click Me!\" there should be zero links. However, four links remain. This is the environment:\r\nNode Version: 6.10.3\r\nNPM Version: 3.10.10\r\nMac OS: 10.13\r\nAppc CLI: 6.3.0-master.16\r\nAppc CLI NPM: 4.2.10-2\r\nTitanium SDK version: 6.3.0.v20171018084007\r\nAppcelerator Studio vers 4.10.0\r\nAndroid 7.1.2 on Pixel\r\nXcode 9.0/iOS 11.0.3 on iPhone 7 Plus", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-24T20:50:32.000+0000", "updated": "2017-10-24T20:50:32.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }