Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5763] Android: Launching an app with portrait orientation in landscape causes image to be redrawn

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-07-11T23:06:32.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, gesture, landscape, orientation, portrait
ReporterAlan Vaghti
AssigneeIngo Muschenetz
Created2011-10-16T10:32:20.000+0000
Updated2017-07-11T23:06:32.000+0000

Description

1) Create a new project and put the following in app.js

var win = Ti.UI.createWindow({
	backgroundColor:'white'
});

var img = Ti.UI.createImageView({image:'grouch.jpg'});

win.add(img);

win.orientationModes = [
    Ti.UI.PORTRAIT
];

win.open();
2) Put the attached grouch.jpg in the Resources folder 3) Hold the device in landscape mode and launch application Actual results: Image and status bar momentarily shows up in landscape mode before quickly being redrawn in portrait mode Expected results: Image and status bar only appear in portrait mode Notes: Seems to only be reproducible on first launch of the app

Attachments

FileDateSize
grouch.jpg2011-10-16T10:32:20.000+000052018

Comments

  1. Lee Morris 2017-07-11

    I am unable 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