{ "id": "134107", "key": "TIMOB-17541", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-09-22T22:08:09.000+0000", "created": "2014-08-04T11:16:56.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "TCSupport", "supportTeam" ], "versions": [ { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T22:18:51.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": "h4. Problem Description\r\n\r\nCan't set the {{androidView}} property of Ti.UI.AlertDialog after creation.\r\n\r\nsetAndroidView is a documented method.\r\nhttp://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.AlertDialog-method-setAndroidView\r\n\r\n\r\nh4. Steps to reproduce\r\n1. Create a simple project.\r\n2.. Paste the testcase into app.js:\r\n{code}\r\nvar ad = Ti.UI.createAlertDialog();\r\nvar av = Ti.UI.createView();\r\nad.setAndroidView(av);\r\n{code}\r\n3.Run on Android\r\n\r\nh4. Expected Result\r\nThe app should work. \r\n\r\nh4. Actual Result\r\nthrows Titanium Javascript Runtime Error:\r\n{color:red}\r\n Message: Uncaught TypeError: Object # has no method 'setAndroidView'\r\n{color}", "attachment": [], "flagged": false, "summary": "Android: AlertDialog has no method 'setAndroidView'", "creator": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium Studio, build: 3.3.0.201407100905\r\nCLI version 3.3.0\r\nTitanium SDK version 3.3.0.GA\r\nOSX 10.9.4\r\nNexus 5, Android 4.4.4\r\n\r\n", "comment": { "comments": [ { "id": "319868", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces\r\n\r\nTitanium SDK version 3.4.0 master, 3.3.0.GA, 3.2.3.GA\r\nTitanium Studio, build: 3.3.0.201407100905\r\nTitanium Command-Line Interface\r\nCLI version 3.3.0, \r\nAndroid device : Nexus 5, Android version : 4.4.4", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-22T06:06:30.000+0000", "updated": "2014-08-22T06:06:30.000+0000" }, { "id": "325034", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "setAndroidView gets generated by the documentation even though it doesn't exist. The androidView can still be set :\r\n\r\n{code}\r\nvar ad = Ti.UI.createAlertDialog();\r\nvar av = Ti.UI.createView();\r\nad.androidView = av;\r\n{code}\r\n\r\nSo removing setAndroidView from the documentation rather than implement the setter is probably the best option.\r\n\r\nPR : https://github.com/appcelerator/titanium_mobile/pull/6154", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-22T21:43:30.000+0000", "updated": "2014-09-22T21:43:30.000+0000" }, { "id": "413307", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T22:18:51.000+0000", "updated": "2017-03-16T22:18:51.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }