[TIMOB-7023] Android: HW window fires open and focus events in wrong order
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-02-29T13:30:52.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint 2012-05, Release 2.0.0 |
Components | Android |
Labels | module_window, parity, qe-testadded |
Reporter | Ping Wang |
Assignee | Hieu Pham |
Created | 2012-01-06T15:16:32.000+0000 |
Updated | 2013-12-02T09:14:53.000+0000 |
Description
Run sample code below.
Titanium.UI.setBackgroundColor('#000');
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#000000',
navBarHidden:true
});
win1.addEventListener("open", function(e) {
Ti.API.debug("*****************OPENED");
});
win1.addEventListener("focus", function(e) {
Ti.API.debug("****************FOCUSED");
});
win1.open();
In the log, we can find it fires focus first and then open.
Expected Result:
fire open first and then focus.
Any chance of merging this fix into 1.8.2, or is it too late?
Too late. We are releasing 1.8.2 in next couple of hours.
Closing as Fixed. SDK: 2.0.0.v20120305174654 Android: V8 Studio: 2.0.0.201203051741 OS: Snow Leopard Devices Tested: Nexus One 2.2.2, Revolution 2.3.4, Xoom 3.2.1, Galaxy Nexus 4.0.2
Same problem exists in iOS, using SDK 2.0.0.v20120325213306.
@Shawn - can you please file an iOS bug for this issue?
@Shawn - Thanks.
Update: this problem still exists under Android 3.2 (emulator).
Oops...never mind. Android 3.2 is fine. I switched emulators and didn't realize I had to clean the project.