{ "id": "106754", "key": "TIMOB-12124", "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": "15418", "description": "2013 Sprint 09 API", "name": "2013 Sprint 09 API", "archived": true, "released": true, "releaseDate": "2013-05-06" }, { "id": "15107", "description": "2013 Sprint 09", "name": "2013 Sprint 09", "archived": true, "released": true, "releaseDate": "2013-05-06" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-05-04T00:02:08.000+0000", "created": "2012-12-18T21:49:46.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "exalture", "module_views", "parity", "qe-testadded" ], "versions": [ { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2014-06-19T12:42:38.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": "If you set the visible property to false on a view and then call the show method it doesn't show the view. It happens if the window to which the view is added is not the first window of the application. It works fine on iOS. \r\nh4. Steps to reproduce\r\n1. Run the below code in your project's app.js.\r\n2. Open the application and click the \"New window\" button.\r\n3. It opens a second window with blue background color and it doesn't show the view.\r\n{code}\r\nTi.UI.backgroundColor = 'white';\r\n\r\nvar win = Ti.UI.createWindow({\r\n\ttitle : 'win',\r\n\tbackgroundColor : 'white'\r\n});\r\n\r\nvar button1 = Ti.UI.createButton({\r\n\ttitle : \"New window\"\r\n});\r\nwin.add(button1);\r\n\r\nbutton1.addEventListener(\"click\", function() {\r\n\tvar win1 = Ti.UI.createWindow({\r\n\t\ttitle : 'win',\r\n\t\tbackgroundColor : 'blue',\r\n\t\tfullscreen : true\r\n\t});\r\n\r\n\tvar indicatorView = Ti.UI.createView({\r\n\t\tvisible : false,\r\n\t\tbackgroundColor : 'black',\r\n\t\theight : '20dp',\r\n\t\twidth : '20dp',\r\n\t});\r\n\twin1.add(indicatorView);\r\n\tindicatorView.show();\r\n\r\n\t//indicatorView.visible = true;\r\n\r\n\twin1.open();\r\n});\r\nwin.open();\r\n{code}", "attachment": [ { "id": "34255", "filename": "deviceScreenshot.png", "author": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-18T21:49:46.000+0000", "size": 11348, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Show method on a view doesn't work", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Galaxy Nexus 7\r\nandroid 4.2\r\nTiSDK 3.0.0", "comment": { "comments": [ { "id": "241543", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem reproduces with release 3.0.2 and master release 3.1.0\n\ntested on\n\nTitanium Studio, build: 3.0.2.201302191606\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \nDevice: Samsung galaxy s duos Android version: 4.0.4\nAndroid Emulator: Android SDK version: 2.2\niOS iPhone Simulator: iOS SDK version: 6.0\n\n It works fine on iOS.", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-11T11:04:15.000+0000", "updated": "2013-03-11T11:04:15.000+0000" }, { "id": "249706", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "\r\nSet 'visible' property regarless of native view is created or not.\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4225", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-05-01T12:57:15.000+0000", "updated": "2013-05-01T12:57:15.000+0000" }, { "id": "274941", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix with:\r\n\r\nAppc-Studio: 3.2.0.201310112258\r\nSdk:3.2.0.v20131013140318\r\nalloy:1.2.2\r\nnpm:1.3.2\r\ntitanium:3.2.0\r\ntitanium-code-processor:1.0.3\r\nDevice:Nexus7(4.2), iPhone5(7.0.2)\r\nXcode: 5", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-14T10:19:46.000+0000", "updated": "2013-10-14T10:19:46.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }