{ "id": "172843", "key": "TIMOB-26715", "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": "20432", "name": "Release 8.0.1", "archived": false, "released": true, "releaseDate": "2019-05-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-03-26T13:42:27.000+0000", "created": "2019-01-11T03:26:13.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "activity", "android", "animation", "engSchedule", "engTriage", "intent", "open", "resume" ], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-03-26T13:42:27.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\nAs of Titanium 8.0.0, launching/resuming the app using a data intent such as a URL scheme, notification, etc. will cause the app to be opened without any slide-in or fade-in animation. The app will suddenly appear instead.\r\n\r\nThe app will animate normally when launched from the app list screen (ie: the main launcher intent) or via the {{startActivityForResult()}} method.\r\n\r\n*Cause:*\r\nTitanium's intent and app resume handling was completely rewritten in 8.0.0 (see: [TIMOB-26075]) in order to resolve \"newintent\" issues while an app activity instance already exists in the background. It solved it by quickly destroying the activity instance created by the Android OS, resuming the existing activity, and passing the new intent to it. However, this code change completely disabled the open animation in this case so that new activity instance that is being quickly created/destroy won't ever appear onscreen. This was an issue that can be seen on a *+Pixel XL+*, although not all devices showed this behavior such as the Pixel 2.\r\n\r\nWe need to find a better solution where the new activity that is quickly created/destroyed is never shown, but we can preserve the animation for the resumed activity.\r\n\r\n*Possible Solution:*\r\nDo the following instead. I don't think there is a good way to know what the default transition animation is per device (ex: slide-up or fade), but a fade effect seems reasonable.\r\n{code:java}\r\noverridePendingTransition(android.R.anim.fade_in, 0);\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: App starts without animation when launched with data intent as of 8.0.0", "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, "comment": { "comments": [ { "id": "445669", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/10650\r\nPR (8.0.1): https://github.com/appcelerator/titanium_mobile/pull/10651", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-26T00:12:44.000+0000", "updated": "2019-01-26T00:12:44.000+0000" }, { "id": "447034", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. Waiting for Jenkins build.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-20T23:20:50.000+0000", "updated": "2019-03-20T23:20:50.000+0000" }, { "id": "447158", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket.* Fix verified in SDK version {{8.0.1.v20190325125116}} and SDK Version {{8.1.0.v20190325115012}}\r\n\r\nTest and other information can be found at: \r\nPR (master): https://github.com/appcelerator/titanium_mobile/pull/10650\r\nPR (8.0.1): https://github.com/appcelerator/titanium_mobile/pull/10651", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-26T13:42:22.000+0000", "updated": "2019-03-26T13:42:22.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }