Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7548] Android - OptionsDialog crashes app when called twice

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-02-06T14:07:29.000+0000
Affected Version/sn/a
Fix Version/sSprint 2012-03, Release 2.0.0, Release 1.8.2
Componentsn/a
Labelsandroid, module_optiondialog, optionsdialog, qe-review, qe-testadded, regression
ReporterPedro Enrique
AssigneeHieu Pham
Created2012-02-06T08:28:35.000+0000
Updated2012-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();

Comments

  1. Rima Umbrasas 2012-08-10

    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

JSON Source