[TIMOB-15106] Android: Closing an heavyweight window soon after opening it doesn't work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.1.2 |
Fix Version/s | n/a |
Components | Android |
Labels | reprod |
Reporter | Fokke Zandbergen |
Assignee | Unknown |
Created | 2013-08-31T08:56:31.000+0000 |
Updated | 2018-02-28T20:03:40.000+0000 |
Description
If you close an heavyweight window soon after having opened it, the window won't be closed.
Use the following code as
Remove line 7 (
Steps to reproduce
Use the following code as app.js
Run the app
You ought to see the red screen (like on iOS), but you will see the green screen still open
Remove line 7 (modal:false
) to make the window lightweight and you *wil* see the red screen
Ti.UI.createWindow({
backgroundColor: 'red'
}).open();
var win = Ti.UI.createWindow({
backgroundColor: 'green',
modal: false
});
win.open();
win.close();
This issue is probably related to TIMOB-7705 resolved as Cannot Reproduce
.
Issue reproduces Titanium SDK version 3.4.0 master, 3.1.2.GA Titanium Studio, build: 3.3.0.201407100905 Titanium Command-Line Interface CLI version 3.3.0, Android device : Motorola Moto G, Android version : 4.4.4
Of course lightweight Windows don't exist anymore, but the issue is still there indeed. It has to do with Android cancelling an Activity is a new one is created before the former has started. Maybe it can be fixed by queueing opening of windows?
I am able to reproduce this issue with the following environment; Pixel (7.1) Studio 4.9.0.201705302345 Ti SDK 6.1.1 GA Appc NPM 4.2.9 Appc CLI 6.2.2 Ti CLI 5.0.14 Alloy 1.9.11 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131