{ "id": "62610", "key": "TIMOB-1978", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-08-21T16:38:06.000+0000", "created": "2011-04-15T03:07:04.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "alert", "android", "defect", "module_media", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "20088", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-06-20T08:59:14.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": "{html}

1.code below (via Bill D)
\r\n2.(repro'd on a G1 running 1.4.25935b3) launch app
\r\n3.tap button to invoke picker and select an item in contacts that\r\nhas an image
\r\nresults:alert appears
\r\n4.repeat but select a contact without an image
\r\nresults: no alert appears (adb logcat shows the expected value)

\r\n

Titanium.UI.setBackgroundColor('#000');
\r\nvar w = Titanium.UI.createWindow({

\r\n
\r\ntitle:'Test',\r\nbackgroundColor:'#fff'\r\n
\r\n

});

\r\n

var btn = Ti.UI.createButton({

\r\n
\r\ntitle: 'Show Contacts Picker'\r\n
\r\n

});

\r\n

btn.addEventListener('click', function(){

\r\n
\r\nTi.Contacts.showContacts( {\r\n    selectedPerson: function(e) {\r\n        var img = e.person.image;\r\n        if (img === null) {\r\n            alert('Image is null');\r\n        } else {\r\n            alert('Image is not null');\r\n        }\r\n    }\r\n})\r\n
\r\n

}); w.add(btn);
\r\nw.open();

{html}", "attachment": [], "flagged": false, "summary": "Android: alert (function) appears behind the window (when image is null)", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "215485", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120821095711, unable to reproduce the issue. Ticket marked as resolved. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-21T16:38:06.000+0000", "updated": "2012-08-21T16:38:06.000+0000" }, { "id": "216726", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nSDK:2.2.0.v20120828153312\r\nStudio:2.1.2.201208281351\r\nDevices: LG-p970(v 2.2.2)", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-29T04:40:03.000+0000", "updated": "2012-08-29T04:40:03.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }