[TIMOB-8213] Android: Titanium.UI.Window - v8 and Rhino :Alerts are getting dismissed with the window.
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Won't Fix |
| Resolution Date | 2013-08-01T21:05:14.000+0000 |
| Affected Version/s | Release 2.0.0 |
| Fix Version/s | n/a |
| Components | Android |
| Labels | qe-and031912 |
| Reporter | Anshu Mittal |
| Assignee | Ingo Muschenetz |
| Created | 2012-03-22T17:47:31.000+0000 |
| Updated | 2017-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();
Closing ticket as the issue will not fix and with reference to the above comments.