{ "id": "164633", "key": "TIMOB-24161", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-11-29T00:07:20.000+0000", "created": "2016-11-21T15:04:26.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-11-29T00:07:36.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 AndroidView property doesn't work with a simple view.\r\n\r\n{code:js}Ti.UI.setBackgroundColor('white');\r\n\r\nvar win = Ti.UI.createWindow({\r\n\ttitle : 'Click window to test',\r\n\tbackgroundColor : 'white',\r\n\texitOnClose : true,\r\n\tfullscreen : false\r\n});\r\n\r\nwin.addEventListener('click', function(e) {\r\n\tvar dialog = Ti.UI.createAlertDialog({\r\n\t\tmessage : 'The file has been deleted',\r\n\t\tok : 'Okay',\r\n\t\ttitle : 'File Deleted',\r\n\t\tandroidView : Titanium.UI.createView({\r\n\t\t\tborderRadius : 10,\r\n\t\t\tbackgroundColor : 'red',\r\n\t\t\twidth : 50,\r\n\t\t\theight : 50\r\n\t\t})\r\n\t});\r\n\tdialog.show();\r\n});\r\nwin.open();{code}\r\n\r\n\r\nResult : \r\n{code}\r\n{{[WARN] : TiUIDialog: (main) [2917,2917] Context must have gone away: The specified child already has a parent. You must call removeView() on the child's parent first.\r\n[WARN] : TiUIDialog: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.\r\n[WARN] : TiUIDialog: \tat android.view.ViewGroup.addViewInner(ViewGroup.java:3938)\r\n[WARN] : TiUIDialog: \tat android.view.ViewGroup.addView(ViewGroup.java:3788)\r\n[WARN] : TiUIDialog: \tat android.view.ViewGroup.addView(ViewGroup.java:3760)\r\n[WARN] : TiUIDialog: \tat android.support.v7.app.AlertController.setupCustomContent(AlertController.java:610)\r\n[WARN] : TiUIDialog: \tat android.support.v7.app.AlertController.setupView(AlertController.java:449)\r\n[WARN] : TiUIDialog: \tat android.support.v7.app.AlertController.installContent(AlertController.java:214)\r\n[WARN] : TiUIDialog: \tat android.support.v7.app.AlertDialog.onCreate(AlertDialog.java:240)\r\n[WARN] : TiUIDialog: \tat android.app.Dialog.dispatchOnCreate(Dialog.java:373)\r\n[WARN] : TiUIDialog: \tat android.app.Dialog.show(Dialog.java:274)\r\n[WARN] : TiUIDialog: \tat ti.modules.titanium.ui.widget.TiUIDialog.show(TiUIDialog.java:298)\r\n[WARN] : TiUIDialog: \tat ti.modules.titanium.ui.AlertDialogProxy$1.run(AlertDialogProxy.java:73)\r\n[WARN] : TiUIDialog: \tat android.os.Handler.handleCallback(Handler.java:746)\r\n[WARN] : TiUIDialog: \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n[WARN] : TiUIDialog: \tat android.os.Looper.loop(Looper.java:135)\r\n[WARN] : TiUIDialog: \tat android.app.ActivityThread.main(ActivityThread.java:5343)\r\n[WARN] : TiUIDialog: \tat java.lang.reflect.Method.invoke(Native Method)\r\n[WARN] : TiUIDialog: \tat java.lang.reflect.Method.invoke(Method.java:372)\r\n[WARN] : TiUIDialog: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)\r\n[WARN] : TiUIDialog: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)}}{code}", "attachment": [], "flagged": false, "summary": "Android: Ti.UI.AlertDialog.androidView doesn't work when borderRadius is set", "creator": { "name": "baharroth", "key": "baharroth", "displayName": "Baharroth", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "baharroth", "key": "baharroth", "displayName": "Baharroth", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK 5.5.0GA, 5.5.1.GA, 6.0.0.GA", "closedSprints": [ { "id": 752, "state": "closed", "name": "2016 Sprint 23 SDK", "startDate": "2016-11-05T00:39:37.027Z", "endDate": "2016-11-19T01:39:00.000Z", "completeDate": "2016-11-29T06:51:57.887Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "401628", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Does the Alloy-one work?\r\n{code:xml}\r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n Confirm\r\n Cancel\r\n \r\n \r\n\r\n{code}\r\nLooks like a regression then.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-11-21T17:48:23.000+0000", "updated": "2016-11-21T17:48:23.000+0000" }, { "id": "401686", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8633", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-22T14:54:41.000+0000", "updated": "2016-11-22T14:54:41.000+0000" }, { "id": "401691", "author": { "name": "baharroth", "key": "baharroth", "displayName": "Baharroth", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sorry Gary for my bad report : usually i simplify the test case and i should have removed the borderRadius, then see it's working.\r\nI let the borderRadius because, to avoid mistakes from me, i used the documentation sample which include a borderRadius.\r\n\r\nTiBaharroth\r\n", "updateAuthor": { "name": "baharroth", "key": "baharroth", "displayName": "Baharroth", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-22T15:33:05.000+0000", "updated": "2016-11-22T15:33:05.000+0000" }, { "id": "401694", "author": { "name": "baharroth", "key": "baharroth", "displayName": "Baharroth", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It's not only for borderRadius, it's all border properties. Your code crash if i add a borderWidth for example.", "updateAuthor": { "name": "baharroth", "key": "baharroth", "displayName": "Baharroth", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-22T15:51:05.000+0000", "updated": "2016-11-22T15:51:51.000+0000" }, { "id": "401949", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed. Using the code provided in the description and the code provided in the test case of https://github.com/appcelerator/titanium_mobile/pull/8633 was able to see Alert Dialogs when a border radius is set. \r\n*Environement*\r\n{code:java}\r\nAppcelerator Command-Line Interface, version 6.0.0\r\nAndroid 7.0 (Google Nexus 6P)\r\nOperating System Name: Mac OS X El Capitan\r\nOperating System Version: 10.11.6\r\nNode.js Version: 4.6.0\r\nnpm: 4.2.8\r\nTitanium CLI Version: 5.0.10\r\nTitanium SDK Version: 6.1.0.v20161128150634\r\nXcode: 8.0\r\nAppcelerator Studio: 4.8.0.201611121409\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-28T23:52:49.000+0000", "updated": "2016-11-28T23:52:49.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }