{ "id": "93326", "key": "TIMOB-9572", "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": "15498", "description": "2013 Sprint 12 API", "name": "2013 Sprint 12 API", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15110", "description": "2013 Sprint 12", "name": "2013 Sprint 12", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "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-06-17T22:57:23.000+0000", "created": "2012-06-15T11:40:06.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "module_view", "qe-and060112", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "31922", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "outwardIssue": { "id": "120014", "key": "TIMOB-15207", "fields": { "summary": "Android: ActivityIndicator shows when it is added to the window", "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": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2014-03-12T10:36:49.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": "The default value of a view added to a window is \"undefined\".\r\n\r\nThis is not a regression. The behavior exists as far as 1.8.2\r\n\r\nSteps to reproduce:\r\n1. Create an application with code below and launch the application\r\n2. Click on Show/Hide button\r\n\r\nActual: An alert with value \"undefined\" is shown which is the value of visible property of view.\r\n\r\nExpected: The value should be returned as \"true\"\r\n\r\n{code}\r\nvar _window = Ti.UI.createWindow({\r\n\t\tbackgroundColor:'white'\r\n\t\t});\r\n\r\n\t\tvar view = Ti.UI.createView({\r\n\t\t\tbackgroundColor:'red',\r\n\t\t\twidth:100,\r\n\t\t\theight:100,\r\n\t\t\ttop:20\r\n\t\t});\r\n\t\t_window.add(view);\r\n\t\t\r\n\t\tvar b = Ti.UI.createButton({\r\n\t\t\ttitle:'Show/hide',\r\n\t\t\twidth:140,\r\n\t\t\theight:40,\r\n\t\t\ttop:160\r\n\t\t});\r\n\t\t\r\n\t\tb.addEventListener('click', function() {\r\n\t\t\talert('Visible: '+view.visible);\r\n\t\t\tif (view.visible) {\r\n\t\t\t\tview.hide();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tview.show();\r\n\t\t\t}\r\n\t\t});\r\n\t\t_window.add(b);\r\n\t\t_window.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Views: The visible property of a view is undefined by default", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.0.201206131907\r\nTitanium SDK: 2.1.0.v20120614194151\r\nAndroid Device: Android Tab(V3.2)\r\nRuntime: v8", "comment": { "comments": [ { "id": "240700", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces with\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\n\nAndroid Emulator: Android SDK version: 2.2", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-05T13:00:20.000+0000", "updated": "2013-03-05T13:00:20.000+0000" }, { "id": "257552", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Set the visible property of a view is true\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4387", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-06-13T04:58:38.000+0000", "updated": "2013-06-13T04:58:38.000+0000" }, { "id": "275918", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing for android and opened new bug for iOS.\r\nVerified the fix with:\r\n\r\nAppc-Studio: 3.2.0.201310181700\r\nSdk:3.2.0.v20131018154951\r\nalloy:1.2.2\r\nnpm:1.3.2\r\ntitanium:3.2.0\r\ntitanium-code-processor:1.0.3\r\nDevice:Samsung Note(v2.3.6),iphoneSimulator(v7)\r\nXcode: 5\r\n\r\nvisible property of view is not undefined by default now it returns boolean value.(true/false)\r\n\r\nClosing this issue for android but have opened new issue for iOS TIMOB-15543\r\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-21T11:39:48.000+0000", "updated": "2013-10-21T11:39:48.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }