Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15106] Android: Closing an heavyweight window soon after opening it doesn't work

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.1.2
Fix Version/sn/a
ComponentsAndroid
Labelsreprod
ReporterFokke Zandbergen
AssigneeUnknown
Created2013-08-31T08:56:31.000+0000
Updated2018-02-28T20:03:40.000+0000

Description

If you close an heavyweight window soon after having opened it, the window won't be closed.

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.

Comments

  1. jithinpv 2014-09-26

    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
  2. Fokke Zandbergen 2014-09-26

    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?
  3. Lee Morris 2017-07-19

    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

JSON Source