Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8213] Android: Titanium.UI.Window - v8 and Rhino :Alerts are getting dismissed with the window.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2013-08-01T21:05:14.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsqe-and031912
ReporterAnshu Mittal
AssigneeIngo Muschenetz
Created2012-03-22T17:47:31.000+0000
Updated2017-03-22T17:25:40.000+0000

Description

Alerts are getting dismissed with the window.(test cases: Titanium.UI.Window - 4947) Steps to reproduce: 1. Run app. 2. Press the 'Press me!' button. 3. Press the 'Press me!' button. 4. Check ddms or logcat for output Expected results: 3: An alert should show "Close event fired" 4: Console output should show "Close event fired" Actual: Alert is not being shown. App.js
var win = Ti.UI.createWindow({
	backgroundColor : 'black'
});

var button1 = Ti.UI.createButton({
	width : 150,
	height : 150,
	title : 'press me!'
});

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

	var win1 = Ti.UI.createWindow({
		modal : true,
		backgroundColor : '#fff'
	});

	win1.addEventListener('close', function() {
		alert('Close event fired');
	});
	var button2 = Ti.UI.createButton({
		width : 150,
		height : 150,
		title : 'Press me!'
	});

	button2.addEventListener('click', function() {
		win1.close();
	});

	win1.open();

	win1.add(button2);
});
win.add(button1);
win.open();

Comments

  1. Lee Morris 2017-03-22

    Closing ticket as the issue will not fix and with reference to the above comments.

JSON Source