{ "id": "102927", "key": "TIMOB-11312", "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": "14165", "description": "2012 Sprint 21 API", "name": "2012 Sprint 21 API", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-10-10T19:43:29.000+0000", "created": "2012-10-09T09:31:35.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_activityindicator", "qe-and100112", "qe-testadded", "regression" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "21886", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "82502", "key": "TIMOB-6092", "fields": { "summary": "Android: Feature Request Standalone Loading indicator", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "21885", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "102272", "key": "TIMOB-11184", "fields": { "summary": "Android: Cancelable ActivityIndicator", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-03-13T18:56:41.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": "Activity indicator is not working\r\nThis is regression since the activity indicator works well on 2.1.3 GA.\r\n\r\nSteps to reproduce:\r\n1. Create an app using the code below.\r\n2. Launch the app and click the 'show indicator' button.\r\n\r\nActual:\r\nIndicator is not shown.\r\n\r\nExpected:\r\nActivity indicator should be dispalyed.\r\n\r\n{code}\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n backgroundColor:'white',\r\n layout:'vertical'\r\n});\r\n\r\nvar hideIndicatorTimeout = null;\r\n \r\n\t\t\r\n\t win1.backgroundColor = \"red\";\r\n\t win1.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\twin1.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\twin1.add(showIndicatorButton);\r\n\t\t \r\nwin1.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: ActivityIndicator: Activity indicator is not working.", "creator": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 3.0.0.v20121008225713\r\nStudio:3.0.0.201210072147\r\nDevices: Samsung galaxy tab(v 3.2), iPhone3GS(5.0.1)\r\nOS: OSX 10.8", "comment": { "comments": [ { "id": "222707", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-09T16:45:59.000+0000", "updated": "2012-10-09T16:45:59.000+0000" }, { "id": "222951", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The Android ActivityIndicator is totally new in 3.0.0 (see TIMOB-6092). It is a view, so it has to be added to the window/view before the show() method is called. The new ActivityIndicator does not have the property \"cancelable\" any more. Mark the ticket as invalid.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-10T19:42:31.000+0000", "updated": "2012-10-10T19:48:21.000+0000" }, { "id": "224321", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing the bug as invalid.", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-18T22:01:44.000+0000", "updated": "2012-10-18T22:01:44.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }