{ "id": "173900", "key": "TIMOB-27369", "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": "20950", "name": "Release 9.1.0", "archived": false, "released": true, "releaseDate": "2020-08-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-08-17T23:27:37.000+0000", "created": "2019-07-19T08:29:14.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "Android", "borderRadius", "bug", "engSchedule", "sdk-8.0.2.GA" ], "versions": [ { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" }, { "id": "20827", "name": "Release 8.2.0", "archived": false, "released": true, "releaseDate": "2019-09-19" }, { "id": "20845", "name": "Release 8.1.1", "archived": false, "released": true, "releaseDate": "2019-08-29" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-08-17T23:27:43.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": "\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'black',\r\n});\r\n\r\nvar vw_main = Ti.UI.createView({\r\n left: 0,\r\n top: 0,\r\n width: '100%',\r\n height: '100%',\r\n layout: 'vertical',\r\n});\r\nwin.add(vw_main);\r\n\r\n\r\nvar vw_rect1 = Ti.UI.createView({\r\n top: 20,\r\n width: 200,\r\n height: 300,\r\n borderRadius: 20,\r\n backgroundColor: 'red',\r\n});\r\nvw_main.add(vw_rect1);\r\n\r\nvar checkBox = Ti.UI.createSwitch({\r\n top: 10,\r\n value: true,\r\n style: Titanium.UI.Android.SWITCH_STYLE_CHECKBOX,\r\n title: 'Border Radius is enabled',\r\n});\r\nvw_main.add(checkBox);\r\n\r\ncheckBox.addEventListener('change', function (e) {\r\n if (e.value) {\r\n vw_rect1.borderRadius = 20;\r\n checkBox.title = \"Border Radius is enabled\";\r\n }\r\n else {\r\n vw_rect1.borderRadius = 0;\r\n //vw_rect1.borderRadius = 0.1; //Current Workaround\r\n checkBox.title = \"Border Radius is not enabled\";\r\n }\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\n\r\nCurrently as a workaround I am setting the borderRadius to 0.1 instead of 0.", "attachment": [], "flagged": false, "summary": "Android: Border Radius once set on a view cannot be reset( i.e. set to 0)", "creator": { "name": "pritish.george", "key": "pritish.george", "displayName": "pritish.george", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pritish.george", "key": "pritish.george", "displayName": "pritish.george", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "This bug was found on Ti SDK 8.0.2.GA. On an Android device running Oreo.", "closedSprints": [ { "id": 1204, "state": "closed", "name": "2020 Sprint 17", "startDate": "2020-08-17T15:48:00.000Z", "endDate": "2020-08-28T15:48:00.000Z", "completeDate": "2020-08-31T15:36:28.040Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "450331", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nThanks for reaching out to us. It would be great if you can describe more about the issue you are experiencing and share complete console logs/screenshot which displays the issue.", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-08-08T07:48:15.000+0000", "updated": "2019-08-08T07:48:15.000+0000" }, { "id": "450395", "author": { "name": "pritish.george", "key": "pritish.george", "displayName": "pritish.george", "active": true, "timeZone": "America/Los_Angeles" }, "body": "If I set the borderRadius of a view to 10 and then later set the borderRadius of the same view to 0, the borderRadius doesn’t change to 0 and remains at 10. I have shared the code in the description and tested it on SDK 8.0.2.GA in a classic app on an android device. I could share a screenshot but it would basically be a view with a borderRadius of 10. I don’t think that will help out. Also there is nothing in the logs\r\nThis is a bug I’ve seen on 8.0.2.GA and not the previous SDK. Also currently as a workaround I am setting the borderRadius to 0.1 instead of 0. That seems to get it working.", "updateAuthor": { "name": "pritish.george", "key": "pritish.george", "displayName": "pritish.george", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-12T13:36:27.000+0000", "updated": "2019-08-12T13:36:27.000+0000" }, { "id": "450416", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~pritish.george],\r\nThanks for letting us know. Hope this issue is sorted out. Can we close this now?", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-08-13T04:36:12.000+0000", "updated": "2019-08-13T04:36:12.000+0000" }, { "id": "450419", "author": { "name": "pritish.george", "key": "pritish.george", "displayName": "pritish.george", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The bug still exists and not sure about the stability of the workaround", "updateAuthor": { "name": "pritish.george", "key": "pritish.george", "displayName": "pritish.george", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-13T06:20:01.000+0000", "updated": "2019-08-13T06:20:01.000+0000" }, { "id": "451000", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I can verify the issue in the latest SDK 8.1.0.GA and 8.1.1.GA. in android. The borderRadius doesn’t change to 0 and remains at 10 upon change. But it does come to 0.1 if that was used instead of 0. Moving to engineering. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-08-30T18:54:06.000+0000", "updated": "2019-08-30T18:54:06.000+0000" }, { "id": "456490", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fixed by TIMOB-27946", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-08-17T23:27:37.000+0000", "updated": "2020-08-17T23:27:37.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }