{ "id": "93992", "key": "TIMOB-9819", "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": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-06-29T22:01:02.000+0000", "created": "2012-06-27T11:36:21.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "exalture", "insight", "module_window", "qe-closed-3.3.0", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "23070", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "104685", "key": "AC-2446", "fields": { "summary": "Android: Crash when adding backgroundGradient to a TabGroup 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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "29962", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "113379", "key": "TIMOB-13672", "fields": { "summary": "Android: setting backgroundSelectedImage on tab results in crash", "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": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2014-04-29T09:52:15.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. Expected results\r\n\r\nPer the changes in TIMOB-1124, I should be able to set a backgroundGradient on a heavyweight Android window (i.e. in a tab group or purposely set)\r\n\r\nh2. Actual results\r\n\r\nCauses force-close. Works as expected on lightweight window.\r\n\r\n{code}\r\n// comment out navBarHidden and the following will work\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Gradients',\r\n navBarHidden: false,\r\n backgroundGradient: {\r\n type: 'linear',\r\n startPoint: { x: '0%', y: '0%' },\r\n endPoint: { x: '100%', y: '100%' },\r\n colors: [ { color: '#fff', offset: 0.0}, { color: '#444', offset: 0.5 }, { color: '#fff', offset: 1.0 } ]\r\n }\r\n});\r\nvar linearGradient = Ti.UI.createView({\r\n top: 10,\r\n width: 100,\r\n height: 100,\r\n backgroundGradient: {\r\n type: 'linear',\r\n startPoint: { x: '0%', y: '50%' },\r\n endPoint: { x: '100%', y: '50%' },\r\n colors: [ { color: 'red', offset: 0.0}, { color: 'blue', offset: 0.25 }, { color: 'red', offset: 1.0 } ]\r\n }\r\n});\r\nwin.add(linearGradient);\r\nwin.open();\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: backgroundGradient on heavyweight window force-closes app", "creator": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "environment": "Ti 2.1.0.v20120621224153\r\nAndroid 2.2 / V8", "comment": { "comments": [ { "id": "239642", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I fixed the crash but gradient won't be applied. nativeView is never set in TiUIView in the case of heavyweight window.\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/3906\r\n", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-02-25T14:47:00.000+0000", "updated": "2013-02-25T14:47:00.000+0000" }, { "id": "250307", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Pull request updated to fix the gradient issue", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-05-06T14:45:48.000+0000", "updated": "2013-05-06T14:45:48.000+0000" }, { "id": "302664", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Application is not getting force closed while using backgroundGradient on heavyweight window.\r\n\r\nVerified fix on:\r\nDevice : Google Nexus 4, Android Version: 4.1.1\r\nSDK: 3.3.0.v20140425191906\r\nCLI version : 3.3.0-dev\r\nOS : MAC OSX 10.9.2\r\nAlloy: 1.4.0-dev\r\nACS: 1.0.14\r\nnpm:1.3.2\r\nAppcelerator Studio, build: 3.3.0.201404251359\r\ntitanium-code-processor: 1.1.1-alpha\r\nXCode : 5.1.1", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-04-28T06:07:34.000+0000", "updated": "2014-04-28T06:07:34.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }