Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Commit

Permalink
Fix auto launch with Intel containers on Kitkat
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Maffett committed Mar 26, 2014
1 parent b15a6dc commit 9cc5aa2
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 64 deletions.
12 changes: 10 additions & 2 deletions build/ui/appframework.ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -3688,7 +3688,7 @@ if (!Date.now)
}
$(document.body).prepend(afui);
}
that.isIntel="intel" in window&&window.intel&&window.intel.xdk&&window.intel.xdk.app;
that.isIntel="intel" in window&&window.intel&&window.intel.xdk&&"app" in window.intel.xdk;
if ($.os.supportsTouch) $.touchLayer(afui);
setupCustomTheme();

Expand Down Expand Up @@ -3834,8 +3834,16 @@ if (!Date.now)

autoBoot: function() {
this.hasLaunched = true;
var that=this;
if (this.autoLaunch) {
this.launch();
if(this.isIntel){
$(document).one("intel.xdk.device.ready",function(){
that.launch();
});
}
else {
this.launch();
}
}
},
css3animate: function(el, opts) {
Expand Down
Loading

0 comments on commit 9cc5aa2

Please sign in to comment.