Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1978] Android: alert (function) appears behind the window (when image is null)

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-08-21T16:38:06.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.0.0
ComponentsAndroid
Labelsalert, android, defect, module_media, qe-testadded
ReporterThomas Huelbert
AssigneeNeeraj Gupta
Created2011-04-15T03:07:04.000+0000
Updated2013-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();

Comments

  1. Junaid Younus 2012-08-21

    Tested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120821095711, unable to reproduce the issue. Ticket marked as resolved.
  2. Anshu Mittal 2012-08-29

    Verified on: SDK:2.2.0.v20120828153312 Studio:2.1.2.201208281351 Devices: LG-p970(v 2.2.2)

JSON Source