{ "id": "118409", "key": "TIMOB-14853", "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": "15597", "description": "2013 Sprint 17", "name": "2013 Sprint 17", "archived": true, "released": true, "releaseDate": "2013-08-23" }, { "id": "15599", "description": "2013 Sprint 17 API", "name": "2013 Sprint 17 API", "archived": true, "released": true, "releaseDate": "2013-08-23" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-08-23T20:42:15.000+0000", "created": "2013-08-13T15:53:59.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T21:39:39.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": "h2. Description of the problem\r\nWhen opening a tab on some devices, the screen flickers. It looks like the new tab open is closing and then opening.\r\n\r\nThe problem is not happening all the time, and apparently only on some devices. In particular, it seems 4.1.x is affected.\r\n\r\nh2. Steps to reproduce\r\n1) Use the code below\r\n2) Run the app and click on the table rows\r\n3) Go back and forth, until the issue is shown\r\n\r\n{code}\r\nvar tbGroup = Ti.UI.createTabGroup({\r\n navBarHidden : true\r\n});\r\n\r\nvar win1 = Ti.UI.createWindow({\r\n title : \"win1\"\r\n});\r\n\r\nvar tableData = [{\r\n title : 'Apples'\r\n}, {\r\n title : 'Bananas'\r\n}, {\r\n title : 'Carrots'\r\n}, {\r\n title : 'Potatoes'\r\n}];\r\n\r\nvar table = Ti.UI.createTableView({\r\n data : tableData,\r\n minRowHeight : 50\r\n});\r\nwin1.add(table);\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n title : \"win2\"\r\n});\r\nwin2.add(table);\r\nvar tb1 = Ti.UI.createTab({\r\n window : win1,\r\n title : 'Tab1'\r\n});\r\n\r\ntable.addEventListener('click', function(e) {\r\n\tvar indicator = Ti.UI.Android.createProgressIndicator({\r\n\t\tmessage : 'Loading...',\r\n\t\tlocation : Ti.UI.Android.PROGRESS_INDICATOR_DIALOG,\r\n\t\ttype : Ti.UI.Android.PROGRESS_INDICATOR_INDETERMINANT\r\n\t});\r\n\tindicator.show();\r\n\t\r\n var win = Ti.UI.createWindow({\r\n \tnavBarHidden : false,\r\n title : 'specialtyName'\r\n });\r\n win.open();\r\n \r\n indicator.hide();\r\n});\r\nvar tb2 = Ti.UI.createTab({\r\n window : win2,\r\n title : 'Tab2'\r\n});\r\n\r\ntbGroup.addTab(tb1);\r\ntbGroup.addTab(tb2);\r\n\r\ntbGroup.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Screen flickers when opening a TabGroup", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Samsung devices 4.1.x\r\nSDK 3.1.1.GA", "comment": { "comments": [ { "id": "266317", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This bug is happening b/c activityIndicator was showing and hiding too quickly. When activityIndicator shows, it blurs the content in the background, and when it is hidden, either via hide() or another activity open on top of it, the background content is unblur. On fast devices, this process happens very quickly, causing flickering effect. This is native behavior and there is a viable workaround:\n\nUse Ti.UI.ActivityIndicator. It serves the same purpose, but since its not a dialog, it won't blur the content. For the above example, you can simply add an activityIndicator to the window that is containing the table view:\n\n{code}\ntable.addEventListener('click', function(e) {\n var activityIndicator = Ti.UI.createActivityIndicator({\n color: 'green',\n message: 'Loading...',\n height:Ti.UI.SIZE,\n width:Ti.UI.SIZE\n });\n win1.add(activityIndicator);\n var win = Ti.UI.createWindow({\n navBarHidden : false,\n title : 'specialtyName'\n });\n win.addEventListener('open', function(e) {\n \twin1.remove(activityIndicator);\n });\n win.open();\n});\n{code}", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-13T21:23:44.000+0000", "updated": "2013-08-13T21:23:44.000+0000" }, { "id": "415026", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as \"Won't Fix\".", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T21:39:39.000+0000", "updated": "2017-03-22T21:39:39.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }