{ "id": "173980", "key": "TIMOB-27309", "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": "20845", "name": "Release 8.1.1", "archived": false, "released": true, "releaseDate": "2019-08-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-08-23T04:58:37.000+0000", "created": "2019-08-06T04:40:00.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ProgressIndicator", "android", "dialog", "engSchedule" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-08-23T04:58:37.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\nIf a {{Ti.UI.Android.ProgressIndicator}} dialog was auto-closed by a window (ie: you did not call its {{hide()}} method yourself), then you will not be able to re-show the dialog ever again. The {{ProgressIndicator}} object becomes unusable.\r\n\r\n*Note:*\r\nThis is more likely to happen if Android developer option \"Don't keep activities\" is enabled.\r\n\r\n*Steps to reproduce:*\r\n# Build and run the below code on Android.\r\n# Tap on the \"Show Progress Dialog\" button.\r\n# A new window displaying a progress dialog will be shown.\r\n# Wait 2 second for the window and dialog to auto-close.\r\n# Tap on the \"Show Progress Dialog\" button again.\r\n# Notice that the child window is empty. The progress dialog was not shown. (This is the bug.)\r\n\r\n{code:javascript}\r\nvar progressIndicator = Ti.UI.Android.createProgressIndicator({\r\n\tmessage: \"Progressing...\",\r\n\tlocation: Ti.UI.Android.PROGRESS_INDICATOR_DIALOG,\r\n\ttype: Ti.UI.Android.PROGRESS_INDICATOR_INDETERMINANT,\r\n});\r\n\r\nvar window = Ti.UI.createWindow();\r\nvar button = Ti.UI.createButton({ title: \"Show Progress Dialog\" });\r\nbutton.addEventListener(\"click\", function(e) {\r\n\tvar childWindow = Ti.UI.createWindow({ title: \"Child Window\" });\r\n\tchildWindow.addEventListener(\"open\", function() {\r\n\t\tprogressIndicator.show();\r\n\t\tsetTimeout(function() {\r\n\t\t\tchildWindow.close();\r\n\t\t}, 2000);\r\n\t});\r\n\tchildWindow.open();\r\n});\r\nwindow.add(button);\r\nwindow.open();\r\n{code}\r\n\r\n*Work-Around:*\r\nHide the progress dialog when via its window's \"close\" event.\r\n{code:javascript}\r\nwindow.addEventListener(\"close\", function() {\r\n\tprogressIndicator.hide();\r\n});\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Cannot re-show \"ProgressIndicator\" dialog if auto-hidden by closed window", "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": 1160, "state": "closed", "name": "2019 Sprint 17", "startDate": "2019-08-12T07:59:28.950Z", "endDate": "2019-08-25T07:59:00.000Z", "completeDate": "2019-08-26T15:35:29.980Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "450413", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/11115\r\nPR (8.1.x): https://github.com/appcelerator/titanium_mobile/pull/11142\r\nPR (8.3.x): https://github.com/appcelerator/titanium_mobile/pull/11143\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-13T00:50:35.000+0000", "updated": "2019-08-13T00:50:35.000+0000" }, { "id": "450657", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed on master, 8_1_X and 8_3_X. The progress indicator works as expected.\r\nWaiting for builds to pass.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-20T22:14:27.000+0000", "updated": "2019-08-20T22:14:27.000+0000" }, { "id": "450766", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix on sdk 8.3.0.v20190822115908,8.2.0.v20190822114913 and 8.1.1.v20190822103134.Progress indicator works as expected. Closing\r\nTest Enviornment:\r\nOperating System\r\nName = Mac OS X\r\nVersion = 10.14.5\r\nArchitecture = 64bit\r\nMemory = 17179869184\r\nNode.js\r\nNode.js Version = 10.16.2\r\nnpm Version = 6.9.0\r\nTitanium CLI\r\nCLI Version = 5.2.1\r\nTitanium SDK\r\nSDK Version = 8.2.0.v20190822114913\r\nDevice = One plus 5T android 9,samsung s5 android 6\r\nEmulator= pixel android 9,nexus android 8", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-08-23T04:58:29.000+0000", "updated": "2019-08-23T04:58:29.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }