{ "id": "115776", "key": "TIMOB-14175", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-06-11T23:23:13.000+0000", "created": "2013-06-11T07:32:35.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.1.1" ], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:05.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": "Android: ActivityIndicator: ActivityIndicator is not working.\r\nThis is not regression. Issue occurs since 2.1.4.GA\r\n\r\nSteps to reproduce:\r\n1. Run the app \r\n{code}\r\nvar hideIndicatorTimeout = null;\r\n \r\n\t\tvar win = Ti.UI.createWindow({backgroundColor: 'white', layout: 'vertical'});\r\n\t\t\r\n\t win.backgroundColor = \"red\";\r\n\t win.layout = 'vertical';\r\n\t\t \r\n\t\tvar indicator = Ti.UI.createActivityIndicator({\r\n\t\t message: \"Processing...\",\r\n\t\t cancelable: true // Indicator will be cancelable by setting this to true.\r\n\t\t});\r\n\t\tindicator.addEventListener('cancel', function() {\r\n\t\t // Fired when the user has canceled this indicator.\r\n\t\t clearTimeout(hideIndicatorTimeout);\r\n\t\t alert(\"Aborted processing\");\r\n\t\t});\r\n\t\t \r\n\t\tvar cancelableSwitch = Titanium.UI.createSwitch({\r\n\t\t title: 'Cancelable',\r\n\t\t style: Ti.UI.Android.SWITCH_STYLE_CHECKBOX,\r\n\t\t value: true\r\n\t\t});\r\n\t\tcancelableSwitch.addEventListener('change',function(e)\r\n\t\t{\r\n\t\t indicator.cancelable = e.value;\r\n\t\t});\r\n\t\twin.add(cancelableSwitch);\r\n\t\t \r\n\t\tvar showIndicatorButton = Ti.UI.createButton({\r\n\t\t title: \"Show Indicator\"\r\n\t\t});\r\n\t\tshowIndicatorButton.addEventListener('click', function() {\r\n\t\t indicator.show();\r\n\t\t hideIndicatorTimeout = setTimeout(function() {\r\n\t\t indicator.hide();\r\n\t\t }, 5000);\r\n\t\t});\r\n\t\twin.add(showIndicatorButton);\r\n win.open();\r\n{code}\r\n\r\n2. Make sure \"Cancelable\" is checked.\r\n3. Press \"Show Indicator\". See Results. \r\n4. Press \"Show Indicator\" then press hardware 'Back' before the indicator closes automatically. See Results.\r\n\r\nExpected :\r\n3: Indicator should appear then disappear after five seconds.\r\n4: Indicator should disappear, then an alert should appear indicating an aborted process.\r\n\r\nActual:\r\nNo ActivityIndicator Occurs.", "attachment": [], "flagged": false, "summary": "Android: ActivityIndicator: ActivityIndicator is not working.", "creator": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Tested on:\r\nDevice : Google Nexus 7, Android Version: 4.1\r\nSDK: 3.1.1.v20130610164554\r\nCLI version : 3.1.0\r\nOS : MAC OSX 10.7.5\r\nAppcelerator Studio, build: 3.1.1.201306071750\r\nXCode : 4.5.1", "comment": { "comments": [ { "id": "257189", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "eric please validate", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-11T18:09:11.000+0000", "updated": "2013-06-11T18:09:11.000+0000" }, { "id": "257302", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello, I'll resolve invalid for now. Paras, please add the indicator to the window. :)\n\nFor example:\n{code}\n showIndicatorButton.addEventListener('click', function() {\n win.add(indicator); // this is the missing part here\n indicator.show();\n hideIndicatorTimeout = setTimeout(function() {\n indicator.hide();\n }, 5000);\n });\n{code}\n\nIf you are not satisfied with the result, please respond. Otherwise, please close.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-11T23:22:45.000+0000", "updated": "2013-06-11T23:22:45.000+0000" }, { "id": "257555", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Thanks Eric :)\r\nVerified and working fine.\r\nDevice : Google Nexus 7, Android Version: 4.1\r\nSDK: 3.1.1.v20130611153550\r\nCLI version : 3.1.1-cr\r\nOS : MAC OSX 10.7.5\r\nAppcelerator Studio, build: 3.1.1.201306071750\r\nXCode : 4.5.1", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-06-13T05:21:16.000+0000", "updated": "2013-06-13T05:21:16.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }