Skip to content

Commit

Permalink
do not have the app in full screen
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierlacot committed Mar 14, 2011
1 parent 5d00332 commit 2a2c81b
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions Resources/app.js
Expand Up @@ -5,6 +5,10 @@ Ti.include('js/lib/initialize.js');
Ti.include('js/lib/install.js');
includeGlobal('js/lib/xavcc.js');

if (Titanium.Platform.name != 'android') {
Titanium.UI.iPhone.statusBarHidden = false;
}

// create tab group
var tabGroup = Titanium.UI.createTabGroup({barColor: '#273f95'});

Expand Down Expand Up @@ -59,15 +63,5 @@ tabGroup.addTab(tab2);
tabGroup.addTab(tab3);
tabGroup.addTab(tab4);

tabGroup.addEventListener('focus', function(e) {
if (Titanium.Platform.name != 'android') {
if (e.index < 2) {
Titanium.UI.iPhone.statusBarHidden = true;
} else {
Titanium.UI.iPhone.statusBarHidden = false;
}
}
});

// open tab group
tabGroup.open();

0 comments on commit 2a2c81b

Please sign in to comment.