From: Vincent Date: Sat, 15 May 2021 06:47:39 +0000 (+0200) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5632f22d12891818114c5b491ce93b8250bfdf8d;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 2b0e917..d544e23 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,12 +2,9 @@ - - - - + diff --git a/js/home.js b/js/home.js index 709ff2c..0525f0a 100644 --- a/js/home.js +++ b/js/home.js @@ -57,10 +57,12 @@ $(function () { runSSHQueue(); }, 1500); - setInterval(function () { + if (androidApp) { + setInterval(function () { + checkPower(); + }, 60000); checkPower(); - }, 60000); - checkPower(); + } console.log('menu init'); menu = new MmenuLight( @@ -647,7 +649,7 @@ function showScreenSaver() { if ($('main section:visible').data('section') === 'remote') { return; } - if(androidApp && !power){ + if (androidApp && !power) { return; } diff --git a/scripts/lib/shield.php b/scripts/lib/shield.php index 2e973e6..94aeb3c 100644 --- a/scripts/lib/shield.php +++ b/scripts/lib/shield.php @@ -121,7 +121,7 @@ function shieldKey($keys, $device = null) function shieldNetflix($id = null, $device = null) { - shieldRunActivity($device); + shieldRunActivity($device, true); shieldHome($device); sleep(1);