diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2016-01-15 14:20:37 +0530 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2016-01-15 14:20:37 +0530 |
| commit | bbc2e7deb5cd0a31e49b033fbc534cc6c8611ece (patch) | |
| tree | 6538bb187cd4b672c528f1e3bcb1aee75a587e6a /www/js/ModalCtrl.js | |
| parent | 73f08ac8d8f4d2995cac1eb5f58e9879c36f305f (diff) | |
#131 - make sure images are not pulled in background mode
Former-commit-id: 115c74770f9023d1acebb0987bd855e2b310fa45
Diffstat (limited to 'www/js/ModalCtrl.js')
| -rw-r--r-- | www/js/ModalCtrl.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/www/js/ModalCtrl.js b/www/js/ModalCtrl.js index 8d36d467..aafaa355 100644 --- a/www/js/ModalCtrl.js +++ b/www/js/ModalCtrl.js @@ -306,6 +306,20 @@ $scope.togglePresets = function() }; + + //------------------------------------------------------------- + // this is checked to make sure we are not pulling images + // when app is in background. This is a problem with Android, + // for example + //------------------------------------------------------------- + + $scope.isBackground = function() + { + console.log ("Is background called from ModalCtrl and returned " + + ZMDataModel.isBackground()); + return ZMDataModel.isBackground(); + }; + //------------------------------------------------------------- // Send PTZ command to ZM // Note: PTZ fails on desktop, don't bother about it |
