{ "id": "173979", "key": "TIMOB-27308", "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:52.000+0000", "created": "2019-08-06T04:21:53.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: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": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Summary:*\r\nThe {{Ti.UI.Android.ProgressIndicator}} set up as \"type\" {{PROGRESS_INDICATOR_DETERMINANT}} ignores the \"value\" property when the {{show()}} method is called. The displayed progress is initialize to zero. Setting the \"value\" property only works after progress indicator is shown.\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# Observe the dialog's progress bar position.\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_DETERMINANT,\r\n\tcancelable: true,\r\n\tmin: 0,\r\n\tmax: 100,\r\n\tvalue: 50, // <- This is ignored.\r\n});\r\nvar window = Ti.UI.createWindow();\r\nvar showButton = Ti.UI.createButton({\r\n\ttitle: \"Show Progress Dialog\",\r\n\tbottom: \"30dp\",\r\n});\r\nshowButton.addEventListener(\"click\", function() {\r\n\tprogressIndicator.show();\r\n});\r\nwindow.add(showButton);\r\nwindow.open();\r\n{code}\r\n\r\n*Result:*\r\nThe dialog's progress bar is at {{0%}}, which is wrong.\r\n\r\n*Expected Result:*\r\nThe dialog's progress bar should be {{50%}}.\r\n\r\n*Work-Around:*\r\nSet the progress value after the {{show()}} method is called.\r\n{code:javascript}\r\nprogressIndicator.show();\r\nprogressIndicator.value = 50;\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Determinant \"ProgressIndicator\" ignores \"value\" property before shown", "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": "450412", "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:25.000+0000", "updated": "2019-08-13T00:50:25.000+0000" }, { "id": "450656", "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:07.000+0000", "updated": "2019-08-20T22:14:07.000+0000" }, { "id": "450764", "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:09.000+0000", "updated": "2019-08-23T04:58:09.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }