[TIMOB-11265] Window close event fired twice when exitOnClose is set to true
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-10-06T00:46:37.000+0000 |
| Affected Version/s | Release 2.1.3, Release 3.0.0 |
| Fix Version/s | Release 3.0.0, Sprint 2012-20 API, 2012 Sprint 20 |
| Components | Android |
| Labels | api, module_window, qe-review, qe-testadded |
| Reporter | Hieu Pham |
| Assignee | Hieu Pham |
| Created | 2012-10-04T23:35:49.000+0000 |
| Updated | 2014-06-19T12:43:00.000+0000 |
Description
close event is fired twice when closing a window with exitOnClose set to true.
Testing instructions:
1. Run this code
var win = Ti.UI.createWindow({fullscreen: true, exitOnClose: true});
win.open();
win.addEventListener('close', function(e) {
Ti.API.info('win closed');
});
2. Hit the back button, observe log.
Tested with: SDK:3.0.0.v20121024144610 Studio: 3.0.0.201210220122 Device:HTC Desire V(Android 4.0.3) Window close event is fired once when exitOnClose is set to true.