{ "id": "174347", "key": "TIMOB-27573", "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": "21039", "name": "Release 9.0.3", "archived": false, "released": true, "releaseDate": "2020-06-10" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-06-08T13:56:24.000+0000", "created": "2019-11-11T07:07:13.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "dialog", "engSchedule", "hide", "progressindicator", "regression", "show" ], "versions": [ { "id": "20845", "name": "Release 8.1.1", "archived": false, "released": true, "releaseDate": "2019-08-29" } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-06-08T13:56:24.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\nHiding and showing a progress indicator dialog like the below prevents the dialog from being hidden ever again.\r\n{code:javascript}\r\n// Hide/show dialog back-to-back.\r\nprogressIndicator.hide();\r\nprogressIndicator.show();\r\n\r\n// Uh-oh. Can never hide dialog ever again now.\r\n{code}\r\n\r\n*Steps to reproduce:*\r\n# Build and run the below code on Android.\r\n# Tap on the button.\r\n# Notice the progress dialog never closes. (Supposed to close in 5 seconds.)\r\n\r\n{code:js}\r\nvar self = Ti.UI.createWindow({\r\n\t\tbackgroundColor:'#ffffff',\r\n\t\tnavBarHidden:true,\r\n\t\texitOnClose:true\r\n\t});\r\n\t\r\n\tvar button = Ti.UI.createButton({\r\n\t title: 'Show Progress Dialog'\r\n\t});\r\n\t\r\n\tvar progressIndicator = Ti.UI.Android.createProgressIndicator({\r\n\t message: 'Loading...',\r\n\t location: Ti.UI.Android.PROGRESS_INDICATOR_DIALOG,\r\n\t cancelable: true,\r\n\t});\r\n\t\r\n\tbutton.addEventListener('click', function (e) {\r\n\t progressIndicator.show();\r\n\t \r\n\t setTimeout(function(){\r\n\t progressIndicator.hide();\r\n\t progressIndicator.show();\r\n\t }, 3000);\r\n\t \r\n\t setTimeout(function(){\r\n\t progressIndicator.hide();\r\n\t }, 5000);\r\n\t});\r\n\t\r\n\tself.add(button);\r\n\tself.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Hiding/Showing progress indicator back-to-back puts it in a bad state as of 8.1.1", "creator": { "name": "Claudiu Stefaniga", "key": "claudiu stefaniga", "displayName": "cstefaniga ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "Claudiu Stefaniga", "key": "claudiu stefaniga", "displayName": "cstefaniga ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.14.5\r\n Architecture = 64bit\r\n # CPUs = 12\r\n Memory = 17179869184\r\nNode.js\r\n Node.js Version = 8.16.0\r\n npm Version = 6.4.1\r\nTitanium CLI\r\n CLI Version = 5.2.1\r\nTitanium SDK\r\n SDK Version = 8.2.0.GA\r\n SDK Path = /Users/cstefaniga/Library/Application Support/Titanium/mobilesdk/osx/8.2.0.GA\r\n Target Platform = android", "closedSprints": [ { "id": 1194, "state": "closed", "name": "2020 Sprint 9", "startDate": "2020-04-24T17:09:51.572Z", "endDate": "2020-05-08T17:09:00.000Z", "completeDate": "2020-05-08T15:40:07.869Z", "originBoardId": 114 }, { "id": 1179, "state": "closed", "name": "2020 Sprint 3", "startDate": "2020-02-03T16:58:00.000Z", "endDate": "2020-02-14T16:58:00.000Z", "completeDate": "2020-02-17T09:45:06.128Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "452621", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, This is a valid issue, I have tested in SDK 8.2.1.GA with Android emulators. Looks the progress indicator is not hiding the second time. Moving to TIMOB. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-11-12T23:26:11.000+0000", "updated": "2019-11-12T23:26:11.000+0000" }, { "id": "455353", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/11684", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-05T03:01:44.000+0000", "updated": "2020-05-05T03:01:44.000+0000" }, { "id": "455441", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-12T21:44:53.000+0000", "updated": "2020-05-12T21:44:53.000+0000" }, { "id": "455616", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (9.0.x): https://github.com/appcelerator/titanium_mobile/pull/11746", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-06-02T20:57:26.000+0000", "updated": "2020-06-02T20:57:26.000+0000" }, { "id": "455655", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to 9_0_X for 9.0.3 target", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-06-05T14:22:40.000+0000", "updated": "2020-06-05T14:22:40.000+0000" }, { "id": "455676", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified changes in 9.0.3.v20200608051820 and 9.1.0.v20200604104832.\r\n\r\nClosing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-06-08T13:56:19.000+0000", "updated": "2020-06-08T13:56:19.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }