{ "id": "173068", "key": "TIMOB-26865", "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": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-03-04T10:19:10.000+0000", "created": "2019-02-27T01:06:06.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "activity", "android", "callback", "qe-testadded", "regression", "restart" ], "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-04-30T22:40:52.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": [], "description": "*Summary:*\r\nAs of Titanium 8.0.0.RC, the {{Activity}} callback assigned to [onRestart|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Android.Activity-property-onRestart] is no longer invoked.\r\n\r\nThis is a regression.\r\n\r\nThe \"onRestart\" callback is supposed to be invoked after the activity's \"onStop\" to indicate that the activity window is being resumed from the background.\r\n\r\n*Steps to reproduce:*\r\n# Build and run the below code on Android.\r\n# Wait for the app to appear onscreen\r\n# Press the \"Home\" button to suspend the app.\r\n# Resume the app.\r\n# Observe the log and notice that \"onRestart\" was not logged.\r\n\r\n{code:java}\r\nvar window = Ti.UI.createWindow();\r\nwindow.add(Ti.UI.createLabel({ text: \"Activity onRestart Test\" }));\r\nwindow.activity.onRestart = function() {\r\n\tTi.API.info(\"@@@ Activity.onRestart() called.\");\r\n\tTi.UI.createNotification({\r\n\t\tmessage: \"Activity.onRestart() called.\",\r\n\t\tduration: Ti.UI.NOTIFICATION_DURATION_SHORT,\r\n\t}).show();\r\n};\r\nwindow.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Activity \"onRestart\" callback no longer invoked as of 8.0.0.RC", "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": 1118, "state": "closed", "name": "2019 Sprint 5", "startDate": "2019-02-24T18:36:06.435Z", "endDate": "2019-03-08T18:36:00.000Z", "completeDate": "2019-03-07T22:19:47.057Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "446382", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/10733\r\nPR (8.0.x): https://github.com/appcelerator/titanium_mobile/pull/10734\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-28T00:36:34.000+0000", "updated": "2019-02-28T00:36:34.000+0000" }, { "id": "446425", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed for both PR's.\r\nWaiting for Jenkins to allow to merge.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-28T22:16:57.000+0000", "updated": "2019-02-28T22:16:57.000+0000" }, { "id": "446460", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR's Merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-01T22:50:20.000+0000", "updated": "2019-03-01T22:50:20.000+0000" }, { "id": "446478", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket, fix verified in SDK Version 8.1.0.v20190301155716 and SDK Version 8.0.0.v20190301145350.\r\n\r\nTest and other information can be found at: \r\nPR (master): https://github.com/appcelerator/titanium_mobile/pull/10733\r\nPR (8.0.x): https://github.com/appcelerator/titanium_mobile/pull/10734", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-04T10:19:05.000+0000", "updated": "2019-03-04T10:19:05.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }