{ "id": "101865", "key": "TIMOB-11088", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-02-26T06:31:04.000+0000", "created": "2012-09-24T17:46:50.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [], "assignee": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T20:47:47.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": "When using long text for auto link, some of the text wraps in to a second line leaving a white area in the first line. Tapping on this white area opens the email client or the phone app. (The auto link behavior).\r\n\r\nh4.Steps to Reproduce:\r\n1. Load a new project with the below app.js.\r\n2. Click anywhere on the white space next to the link.\r\n \r\nExpected Behavior: The e-mail client or the Phone Dial pad should only open when the link is clicked.\r\n\r\nActual Behavior: They open even when the blank space next to the link is tapped.\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\nvar text = \"1234@gmail.com 123456789012346789012345678901234567890 abc@gmail.com qrstuvwxyz123456789@abcdefghijk.com 123456789 123456789 123-456-7890\"\r\n\r\nvar lbl2 = Ti.UI.createLabel({\r\n text: text,\r\n width:'auto',\r\n top: 60,\r\n autoLink: Ti.UI.Android.LINKIFY_ALL\r\n});\r\n\r\nwin.add(lbl2);\r\nwin.open();\r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Autolink tap area automatically takes the whole line space.", "creator": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android 2.3.3, Android 4.0.3, Ti SDK 2.1.0GA, 2.1.1 GA, 2.1.2 GA, 2.1.3 GA", "comment": { "comments": [ { "id": "221211", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This seems to be normal Android behavior, I tested it with a native Java android application:\n\nh3. main.xml\n{code}\n\n\n\n \n\n\n{code}\n\nh3. HelloWorldActivity.java\n{code}\npackage com.pec1985.helloworld;\n\nimport android.app.Activity;\nimport android.os.Bundle;\nimport android.text.util.Linkify;\nimport android.widget.TextView;\n\npublic class HelloWorldActivity extends Activity {\n /** Called when the activity is first created. */\n @Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n TextView label = (TextView)findViewById(R.id.label);\n label.setTextSize(18);\n label.setText(\"1234@gmail.com 123456789012346789012345678901234567890 abc@gmail.com qrstuvwxyz123456789@abcdefghijk.com 123456789 123456789 123-456-7890\");\n Linkify.addLinks(label, Linkify.ALL);\n \n }\n}\n{code}\n\nh3. Result, the same as in Titanium, taping on empty space triggers last link.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-09-27T16:28:27.000+0000", "updated": "2012-09-27T16:28:27.000+0000" }, { "id": "239762", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The issue reported here is not a bugg. Actually the 'lbl2' is a view and it's width will be set according to the length of the var 'text'. So the lbl2 should capture events on its entire area. When a user makes a click on the white space after the link, lbl2's event listener is getting triggered. Therefore it cannot be treated as a bug.\r\nFor more clarification give a background color for lb2 and set its width to some dimension like 'width:300' and repeate the steps.", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-26T06:31:04.000+0000", "updated": "2013-02-26T06:31:04.000+0000" }, { "id": "413962", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T20:47:47.000+0000", "updated": "2017-03-20T20:47:47.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }