{ "id": "107376", "key": "TIMOB-12206", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-03-11T08:03:33.000+0000", "created": "2013-01-04T10:39:09.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:39:26.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": "ISSUE:\r\nSetting the Ti.UI.Android.ProgressIndicator with the location in the status bar works fine on lightweight windows but not on heavyweight windows. The heavyweight window appears to hide the progress bar.\r\n\r\nREPRODUCTION:\r\nRun the code below on the Android emulator with the modal property for win2 commented out and uncommented (line 10).\r\n\r\nRESULTS:\r\nWhen set as a lightweight window, the progress bar appears as expected.\r\n\r\nWhen set as a heavyweight window, the progress bar is hidden by the heavyweight window. You can see a full progress bar briefly as the window closes. Might want to comment out line 34 when you hide the progress indicator to see it better.\r\n\r\nADDITIONAL INFO:\r\nWorks fine with both heavyweight and lightweight windows with the location set as the dialog box.\r\n\r\nWORKAROUND:\r\nIf you create the progress indicator inside the event listener, it is displayed on the heavyweight window.\r\n\r\n{code}\r\nTi.UI.backgroundColor = 'white';\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n backgroundColor: 'blue',\r\n exitOnClose: true\r\n});\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n backgroundColor: 'yellow',\r\n //modal: false\r\n});\r\n\r\nvar progressIndicator = Ti.UI.Android.createProgressIndicator({\r\n message: 'Loading...',\r\n location: Titanium.UI.Android.PROGRESS_INDICATOR_STATUS_BAR,\r\n type: Ti.UI.Android.PROGRESS_INDICATOR_DETERMINANT,\r\n cancelable: true,\r\n min: 0,\r\n max: 10\r\n});\r\n\r\nwin2.addEventListener('open', function (e) {\r\n progressIndicator.show();\r\n var value = 0;\r\n setInterval(function(){\r\n if (value > 10) {\r\n return;\r\n }\r\n progressIndicator.value = value;\r\n value ++;\r\n }, 200);\r\n setTimeout(function(){\r\n e.source.close();\r\n progressIndicator.hide();\r\n }, 3000);\r\n});\r\n\r\nwin1.open();\r\nwin2.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: ProgressIndicator in status bar is hidden by heavyweight windows", "creator": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium 3.0.0.GA and Titanium 3.1.0 (01/04/13 11:16 c4ff10e)\r\nTitanium Studio, build: 3.0.0.201212131639\r\nAndroid 4.1.2\r\nMac OS X 10.7.5", "comment": { "comments": [ { "id": "241534", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue does not reproduces with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\r\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\r\nDevice: Samsung galaxy s duos Android version: 4.0.4\r\n", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-11T08:03:33.000+0000", "updated": "2013-03-11T08:03:33.000+0000" }, { "id": "414483", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:39:26.000+0000", "updated": "2017-03-21T21:39:26.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }