Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24068] App loads on Android but just shows blank screen

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2016-12-08T00:17:52.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.1.0
ComponentsAndroid
Labelsqe-6.0.0
ReporterLee Morris
AssigneeChee Kiat Ng
Created2016-10-24T22:28:17.000+0000
Updated2016-12-08T00:17:52.000+0000

Description

*Steps to reproduce* 1. Run the test code 2. Tap on the "Welcome to Titanium" for the alert to be displayed 3. Try to rotate the device. 4. Go back to portrait and tap on the input text box. 5. Try to rotate the device *Actual Results* Blank screen shows which Done button. This was tested on Android 4.4.2 and 6.0.1. The same issue occurs on both devices that were used. *Expected Results* An app launches with a button which says "Welcome". *Code*
var win = Ti.UI.createWindow({
	orientationModes: [Ti.UI.PORTRAIT],
	backgroundColor:'#ffffff'
});
 
	var label = Ti.UI.createLabel({
		color:'#000000',
		text:String.format(L('welcome'),'Titanium'),
		height:'auto',
		width:'auto'
	});
 
	label.addEventListener('click', function(e) {
	    var alertDialog = Ti.UI.createAlertDialog({
            title: "Alert Dialog",
            message: "akjskajksa skajskajksjas akjskajskjaks aksjakjsa aksjakjsa aksjakjsa aksjakjsa aksjakjsa aksjakjsa aksjakjsa",
            style: Ti.UI.iPhone.AlertDialogStyle.PLAIN_TEXT_INPUT
        });
 
        alertDialog.show();
	});

Comments

  1. Chee Kiat Ng 2016-10-24

    [~lmorris] Can you help to check if this is a regression and which version this could have worked? Thanks.
  2. Gary Mathews 2016-11-04

    [~lmorris] The test case seems incomplete? Also, why is Ti.UI.iPhone.AlertDialogStyle.PLAIN_TEXT_INPUT being used on Android?

JSON Source