[TIMOB-24068] App loads on Android but just shows blank screen
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2016-12-08T00:17:52.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 6.1.0 |
Components | Android |
Labels | qe-6.0.0 |
Reporter | Lee Morris |
Assignee | Chee Kiat Ng |
Created | 2016-10-24T22:28:17.000+0000 |
Updated | 2016-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();
});
[~lmorris] Can you help to check if this is a regression and which version this could have worked? Thanks.
[~lmorris] The test case seems incomplete? Also, why is
Ti.UI.iPhone.AlertDialogStyle.PLAIN_TEXT_INPUT
being used on Android?