{ "id": "127692", "key": "TIMOB-16626", "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": "16270", "description": "2014 Sprint 10", "name": "2014 Sprint 10", "archived": true, "released": true, "releaseDate": "2014-05-22" }, { "id": "16271", "description": "2014 Sprint 10 SDK", "name": "2014 Sprint 10 SDK", "archived": true, "released": true, "releaseDate": "2014-05-22" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-05-14T18:26:49.000+0000", "created": "2014-03-14T18:20:56.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_activityindicator", "qe-testadded", "regression", "supportTeam", "triage" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-05-15T23:27:37.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": "h6.Issue description\r\nSince Titanium Project upgraded from the 3.1.3.GA TiSDK to the 3.2.0.GA and 3.2.1.GA SDK the splash screen and/or loading indicators flicker when the app is starting up. \r\n\r\nSometimes the indicator is barely visible and other times the screen flickers. That sample code does reproduce the issue. It was verified (the loading indicator was made a bit larger to clarify the issue and uploaded a video here: https://www.dropbox.com/s/vp5mrhuay0h1nsu/IMG_0874.MOV\r\n\r\nh6.Devices affected\r\nSeems to only happen on subset of devices with Gingerbread. i.e Samsung Galaxy Note running Android 2.3.6 and Droid Razr 2.3.6.\r\n\r\nNot reproducible on Android 4.0.X though. \r\n\r\nh6.Steps to replicate\r\n# Get and run sample: https://www.dropbox.com/s/vfi2gmvf7c5zknt/APP-212883_TestCase.zip\r\n# Launch app at device\r\n# Monitor activity indicator. From time to time the issue occurs. ", "attachment": [ { "id": "46689", "filename": "app.js", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-17T16:29:45.000+0000", "size": 4122, "mimeType": "text/javascript" } ], "flagged": false, "summary": "Android: Changing the opacity into a view have a flashing loading indicator", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Android Gingerbread API Level 10", "closedSprints": [ { "id": 50, "state": "closed", "name": "2014 Sprint 09 Tooling", "startDate": "2014-04-28T15:43:24.381Z", "endDate": "2014-05-10T03:44:00.000Z", "completeDate": "2014-05-12T13:36:16.254Z", "originBoardId": 113 }, { "id": 104, "state": "closed", "name": "2014 Sprint 10 SDK", "startDate": "2014-05-12T16:00:00.000Z", "endDate": "2014-05-24T00:00:00.000Z", "completeDate": "2014-05-27T18:11:47.424Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "299230", "author": { "name": "dfortner", "key": "dfortner", "displayName": "Daniel Fortner", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We can cancel the 3.2.3 request. 3.3.0 will work!", "updateAuthor": { "name": "dfortner", "key": "dfortner", "displayName": "Daniel Fortner", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-28T22:18:32.000+0000", "updated": "2014-03-28T22:18:32.000+0000" }, { "id": "304798", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5681", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-05-14T17:15:13.000+0000", "updated": "2014-05-14T17:15:13.000+0000" }, { "id": "304800", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Simplified Test Cases\r\n\r\nTEST CASE 1\r\n{code}\r\nvar activityIndicator = null;\r\nvar inAnimation = null;\r\nvar outAnimation = null;\r\n\r\nfunction createActivityIndicator() {\r\n\tvar indicator;\r\n\tindicator = Titanium.UI.createActivityIndicator({\r\n\t\tbottom : 10,\r\n\t\theight : 50,\r\n\t\twidth : 50,\r\n\t\tcolor : 'white',\r\n\t\tfont : {\r\n\t\t\tfontWeight : 'bold'\r\n\t\t},\r\n\t\tmessage : '',\r\n\t\tstyle : Ti.UI.ActivityIndicatorStyle.BIG,\r\n\t});\r\n\r\n\treturn indicator;\r\n}\r\n\r\nfunction createActivityBackground() {\r\n\treturn Titanium.UI.createView({\r\n\t\tbackgroundColor : 'black',\r\n\t\topacity : 0,\r\n\t\tbottom : 0,\r\n\t\theight : 70,\r\n\t});\r\n}\r\n\r\n\r\n//Resources/mbanking/ui/bootstrap-initialization.js:213 - function createWindow()\r\nvar bootStrapWindow = Ti.UI.createWindow({\r\n\tbackgroundColor: 'red',\r\n\texitOnClose:false\r\n});\r\n\r\n//create activity indicator\r\nif (activityIndicator == null) {\r\n\tbgView = createActivityBackground();\r\n\tbootStrapWindow.add(bgView);\r\n\tactivityIndicator = createActivityIndicator();\r\n\tbgView.add(activityIndicator);\r\n}\r\n\r\nbootStrapWindow.addEventListener('open', function() {\r\n\t\r\n\t_showActivity('Loading');\r\n\r\n\r\n\tvar loginWindow = Ti.UI.createWindow({\r\n\t\tbackgroundColor : 'blue',\r\n\t\texitOnClose : true,\r\n\t\t//fullscreen : false, navBarHidden : true\r\n\t});\r\n\tloginWindow.add(Ti.UI.createLabel({\r\n\t\ttop : 50,\r\n\t\tleft : 25,\r\n\t\ttext : 'Enter your user ID to sign on to MyBank Service.:'\r\n\t}));\r\n\tloginWindow.add(Ti.UI.createTextField({\r\n\t\ttop : 75,\r\n\t\tleft : 20,\r\n\t\twidth : '80%',\r\n\t\tbackgroundColor : 'white',\r\n\t\thintText : 'User ID'\r\n\t}));\r\n\tsetTimeout(function() {\r\n\t\t\r\n\t\t\r\n\t\tTi.API.info(' loginWindow Opened ');\r\n\r\n\t\tif (activityIndicator != null) {\r\n\t\t\tactivityIndicator.hide();\r\n\t\t}\r\n\t\tvar closeAni = Ti.UI.createAnimation({\r\n\t\t\topacity : 0,\r\n\t\t\tduration : 100\r\n\t\t});\r\n\t\tbootStrapWindow.close(closeAni);\r\n\t\t//bootStrapWindow.close();\r\n\t\tloginWindow.open();\r\n\t\t\r\n\t}, 10000);\r\n});\r\n\r\nbootStrapWindow.open();\r\n\r\n\r\nfunction _showActivity(message) {\r\n\tif (message) {\r\n\t\t//activityIndicator.setMessage(message);\r\n\t}\r\n\r\n\tif (bgView != null) {\r\n\t\tif (inAnimation == null) {\r\n\t\t\tinAnimation = createInAnimation();\r\n\t\t}\r\n\t\tTi.API.info(' Running Animation ');\r\n\t\tbgView.animate(inAnimation, function() {\r\n\t\t\tif (activityIndicator != null) {\r\n\t\t\t\tactivityIndicator.show();\r\n\t\t\t}\r\n\t\t});\r\n\t}\r\n}\r\n\r\nfunction createInAnimation() {\r\n\treturn Ti.UI.createAnimation({\r\n\t\topacity : 0.7,\r\n\t\tduration : 500\r\n\t});\r\n}\r\n{code}\r\n\r\nTEST CASE 2\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({backgroundColor:'white'});\r\n\r\nvar v1 = Ti.UI.createView({\r\n height:70,\r\n opacity:0,\r\n backgroundColor:'red'\r\n});\r\n\r\n\r\nvar v2 = Ti.UI.createView({\r\n height:50,\r\n width:50,\r\n backgroundColor:'green'\r\n});\r\n\r\n\r\nv1.add(v2);\r\n\r\nwin.add(v1);\r\n\r\nvar b1 = Ti.UI.createButton({\r\n title:'0',\r\n left:0,\r\n bottom:0\r\n});\r\n\r\nvar b2 = Ti.UI.createButton({\r\n title:'0.5',\r\n bottom:0\r\n});\r\n\r\nvar b3 = Ti.UI.createButton({\r\n title:'1',\r\n right:0,\r\n bottom:0\r\n});\r\n\r\nwin.add(b1);\r\nwin.add(b2);\r\nwin.add(b3);\r\n\r\nb1.addEventListener('click',function(e){\r\n v1.opacity = 0;\r\n});\r\n\r\nb2.addEventListener('click',function(e){\r\n v1.opacity = 0.5;\r\n});\r\nb3.addEventListener('click',function(e){\r\n v1.opacity = 1;\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\n", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-05-14T17:19:23.000+0000", "updated": "2014-05-14T17:19:23.000+0000" }, { "id": "305210", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix. The activity indicator/loading indicator does not flash.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 3.3.0.201405121247\r\nTi SDK : 3.3.0.v20140515151935\r\nMac OSX : 10.8.5\r\nAlloy : 1.4.0-alpha\r\nCLI - 3.3.0-dev\r\nSony xperia- android 2.3.7\r\nNexus 5 - android 4.4.2 ", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-15T23:24:02.000+0000", "updated": "2014-05-15T23:24:02.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }