Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15917] Android: Window: New window does not open in button click

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-12-08T17:42:42.000+0000
Affected Version/sRelease 3.2.0
Fix Version/s2013 Sprint 25, 2013 Sprint 25 API, Release 3.2.0, Release 3.3.0
ComponentsAndroid
Labelsqe-3.2.0, qe-testadded, regression
ReporterParas Mishra
AssigneePing Wang
Created2013-12-07T04:50:57.000+0000
Updated2014-01-22T10:56:19.000+0000

Description

Android: Window: New window does not open in button click It works fine on SDK: 3.1.3.GA Steps to reproduce: 1. Run the below app.
var _window = Titanium.UI.createWindow({ 
    backgroundColor:'#fff'
});
 
var button = Ti.UI.createButton({
			title : 'Press me'
		});

		button.addEventListener('click', function() {

			var win = Ti.UI.createWindow({
				backgroundColor : 'white',
				borderColor : 'black',
				borderWidth : 1,
				width : '100%',
				height : '100%',
				navBarHidden : true
			});			
			win.open();
			
		});		
		_window.add(button);

_window.open();
2. Click press me Expected: A new window should open Actual: A black screen appears

Comments

  1. Lokesh Choudhary 2013-12-07

    I could reproduce the issue using the latest 3.2.0.v20131206182444 SDK. It might be related to heavyweight windows. Using the property 'true' & with navBarHidden property in the code set to false (as it would make it heavyweight) the window opens fine. Environment: Appcel Studio : 3.2.0.201312052211 Ti SDK : 3.2.0.v20131206182444 Mac OSX : 10.8.5 Alloy : 1.3.0-beta CLI - 3.2.0-beta
  2. Ping Wang 2013-12-08

    PR: https://github.com/appcelerator/titanium_mobile/pull/5093 3_2_X PR: https://github.com/appcelerator/titanium_mobile/pull/5094
  3. Neha Mittal 2013-12-09

    Verified with Environment: Appcelerator Studio: 3.2.0.201312081316 SDK:3.2.0.v20131208204843 alloy: 1.3.0-beta acs: 1.0.10 npm: 1.3.2 titanium: 3.2.0-beta titanium-code-processor: 1.1.0-beta Xcode: 5.0.2 Devices: Google Nexus7(v4.2.1) and iPhone5 Version:7.0.4 New window is now open successfully on the button click. Hence closing the issue.

JSON Source