{ "id": "166762", "key": "TIMOB-24527", "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": "19333", "description": "Patch release for important items that did not make it into 6.0.3", "name": "Release 6.0.4", "archived": false, "released": true, "releaseDate": "2017-04-27" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-04-21T22:36:26.000+0000", "created": "2017-03-23T14:35:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-04-21T23:46:23.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": "Some applications specify the {{FLAG_ACTIVITY_NEW_DOCUMENT}} flag when launching applications (Gmail). This can cause event listeners to be overridden and fired in the incorrect activity instance.\r\n\r\n*TEST CASE*\r\n*tiapp.xml*\r\n{code:xml}\r\n\r\n ...\r\n \r\n ...\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ...\r\n \r\n\r\n{code}\r\n\r\n*app.js*\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n layout: 'vertical'\r\n }),\r\n bar = Ti.UI.createView({\r\n layout: 'horizontal',\r\n width: Ti.UI.FILL,\r\n height: Ti.UI.SIZE\r\n })\r\n currentData = Ti.UI.createButton({\r\n title: 'CURRENT DATA',\r\n left: 0\r\n }),\r\n clear = Ti.UI.createButton({\r\n title: 'CLEAR',\r\n right: 0\r\n }),\r\n scrollView = Ti.UI.createScrollView({\r\n layout: 'vertical',\r\n height: Ti.UI.FILL,\r\n backgroundColor: 'white'\r\n });\r\n\r\n// show current data\r\ncurrentData.addEventListener('click', function (e) {\r\n alert(Ti.Android.currentActivity.getIntent().data);\r\n});\r\n\r\n// clear intent log\r\nclear.addEventListener('click', function (e) {\r\n scrollView.removeAllChildren();\r\n});\r\n\r\n// launch intent\r\nscrollView.add(Ti.UI.createLabel({\r\n top: 10,\r\n color: 'black',\r\n text: 'LAUNCH INTENT ' + JSON.stringify(Ti.Android.currentActivity.getIntent()) + ' WITH DATA: ' + Ti.Android.currentActivity.getIntent().data\r\n}));\r\n\r\nbar.add(currentData);\r\nbar.add(clear);\r\nwin.add(bar);\r\nwin.add(scrollView);\r\nwin.open();\r\n{code}\r\n\r\n1. Launch app via a link in Gmail: {{www.android.com/0}}\r\n2. Press 'CURRENT DATA', should display {{www.android.com/0}}\r\n3. Open recent apps menu and resume Gmail\r\n4. Launch app via link in Gmail: {{www.android.com/1}}\r\n5. Press 'CURRENT DATA', should display {{www.android.com/1}}\r\n6. Open recent apps menu and resume Gmail\r\n7. Launch app via a link in Gmail: {{www.android.com/0}}\r\n8. Press 'CURRENT DATA', should display {{www.android.com/0}} but does not", "attachment": [], "flagged": false, "summary": "Android: Intents using FLAG_ACTIVITY_NEW_DOCUMENT can cause issues with KrollRuntime", "creator": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 871, "state": "closed", "name": "2017 Sprint 08 SDK", "startDate": "2017-04-10T15:40:31.217Z", "endDate": "2017-04-24T15:40:00.000Z", "completeDate": "2017-04-23T21:46:37.098Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "415540", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8908", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T14:55:21.000+0000", "updated": "2017-03-24T14:55:21.000+0000" }, { "id": "416093", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "6_0_X: https://github.com/appcelerator/titanium_mobile/pull/8910", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-28T23:14:16.000+0000", "updated": "2017-03-28T23:14:16.000+0000" }, { "id": "417869", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Done. \r\nMerged 6.0.4 PR waiting for build from CI to close.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-21T22:36:37.000+0000", "updated": "2017-04-21T22:36:37.000+0000" }, { "id": "417873", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix in 6.0.4.v20170421153428.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-21T23:46:13.000+0000", "updated": "2017-04-21T23:46:13.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }