[TIMOB-1978] Android: alert (function) appears behind the window (when image is null)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-08-21T16:38:06.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.0.0 |
Components | Android |
Labels | alert, android, defect, module_media, qe-testadded |
Reporter | Thomas Huelbert |
Assignee | Neeraj Gupta |
Created | 2011-04-15T03:07:04.000+0000 |
Updated | 2013-06-20T08:59:14.000+0000 |
Description
1.code below (via Bill D)
2.(repro'd on a G1 running 1.4.25935b3) launch app
3.tap button to invoke picker and select an item in contacts that
has an image
results:alert appears
4.repeat but select a contact without an image
results: no alert appears (adb logcat shows the expected value)
Titanium.UI.setBackgroundColor('#000');
var w = Titanium.UI.createWindow({
title:'Test',
backgroundColor:'#fff'
});
var btn = Ti.UI.createButton({
title: 'Show Contacts Picker'
});
btn.addEventListener('click', function(){
Ti.Contacts.showContacts( {
selectedPerson: function(e) {
var img = e.person.image;
if (img === null) {
alert('Image is null');
} else {
alert('Image is not null');
}
}
})
}); w.add(btn);
w.open();
Tested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120821095711, unable to reproduce the issue. Ticket marked as resolved.
Verified on: SDK:2.2.0.v20120828153312 Studio:2.1.2.201208281351 Devices: LG-p970(v 2.2.2)