[TIMOB-7548] Android - OptionsDialog crashes app when called twice
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-02-06T14:07:29.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Sprint 2012-03, Release 2.0.0, Release 1.8.2 |
| Components | n/a |
| Labels | android, module_optiondialog, optionsdialog, qe-review, qe-testadded, regression |
| Reporter | Pedro Enrique |
| Assignee | Hieu Pham |
| Created | 2012-02-06T08:28:35.000+0000 |
| Updated | 2012-08-14T04:06:00.000+0000 |
Description
When calling an Options Dialog twice, the app stops responding.
This woks fine in 1.8.0.1
var win = Ti.UI.createWindow();
var dialog = Titanium.UI.createOptionDialog({
title: 'Hello',
options: ['Option 1','Option 2'],
cancel:1
});
var btn = Ti.UI.createButton({title:'here'});
btn.addEventListener('click', function(){
dialog.show();
});
win.add(btn);
win.open();
Verified fixed with mobile sdk-2.2.0.v20120810080115 Titanium Studio, build: 2.1.1.201207271312 Device: Galaxy S III Android version 4.0.4