{ "id": "171993", "key": "TIMOB-26250", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-08-03T00:11:08.000+0000", "created": "2018-08-02T01:38:40.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "activity", "android", "build", "xml" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-03T18:23:34.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": "*Summary:*\r\nIn Titanium 6.1.0, our build tools ignore the activity \"android:launchMode\" setting in \"tiapp.xml\" and log the following build warning. This was to avoid confusion over how Google's \"singleTask\" feature works and to favor Titanium's \"intent-filter-new-task\" property instead.\r\n{code}\r\n[WARN] : android:launchMode should not be used. Ignoring definition from \r\n{code}\r\n\r\nWe should change the behavior to allow developers to set \"android:launchMode\" again, but keep the build warning. Some developers already know how to deal with the repercussions of the \"singleTask\" setting where all child activity windows are automatically closed upon app resume.\r\n\r\n*Test:*\r\n# Add the below Android xml settings to your \"tiapp.xml\" file.\r\n# In the XML, change the {{}} element's \"name\" attribute's {{}} part to the name of your Titanium project where only the 1st letter is capitalized. (Ex: \"MyProject\" would become \"Myproject\".)\r\n# Build the application for Android.\r\n# Note the build warning that appears regarding \"android:launchMode\".\r\n\r\n*tiapp.xml*\r\n{code:xml}\r\n\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\tActivity\" android:launchMode=\"singleTask\">\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Allow activity \"android:launchMode\" attribute to be set in \"tiapp.xml\"", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1058, "state": "closed", "name": "2018 Sprint 16 SDK", "startDate": "2018-07-29T22:26:06.486Z", "endDate": "2018-08-12T22:26:00.000Z", "completeDate": "2018-08-13T17:38:16.757Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "439675", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/10225\r\nPR (7.3.x): https://github.com/appcelerator/titanium_mobile/pull/10226\r\n\r\nThe PR for master includes sample code on how to deal with the \"singleTask\" launch mode.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-02T02:23:50.000+0000", "updated": "2018-08-02T02:23:50.000+0000" }, { "id": "439766", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. PR's merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-03T00:11:00.000+0000", "updated": "2018-08-03T00:11:00.000+0000" }, { "id": "439786", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix in SDK 7.4.0.v20180803013445 & 7.3.0.v20180803101103.\r\n\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-03T18:23:25.000+0000", "updated": "2018-08-03T18:23:25.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }