Skip to content

Commit

Permalink
Merge pull request #66 from euforic/TIMOB-14503
Browse files Browse the repository at this point in the history
TIMOB-14503 LiveView: A Live-View enabled app should force the screen to stay on
  • Loading branch information
Christian Sullivan committed Dec 10, 2013
2 parents 50ff0af + 07f559c commit a59299d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
6 changes: 6 additions & 0 deletions build/liveview.js
Expand Up @@ -669,4 +669,10 @@ Module.prototype.cache = function() {

Module.patch(globalScope);

// Prevent display from sleeping

Titanium.App.idleTimerDisabled = true;
Titanium.UI.View.keepScreenOn = true;


})(this);
5 changes: 1 addition & 4 deletions build/liveview.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions lib/platform/_tail.js
Expand Up @@ -17,4 +17,10 @@

Module.patch(globalScope);

// Prevent display from sleeping

Titanium.App.idleTimerDisabled = true;
Titanium.UI.View.keepScreenOn = true;


})(this);
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "liveview",
"version": "0.1.35",
"version": "0.1.36",
"description": "Titanium Live Realtime App Development",
"main": "index.js",
"private": true,
Expand Down

0 comments on commit a59299d

Please sign in to comment.