diff options
Diffstat (limited to 'www/js/StateCtrl.js')
| -rw-r--r-- | www/js/StateCtrl.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/www/js/StateCtrl.js b/www/js/StateCtrl.js index 13ca288c..ec3a771a 100644 --- a/www/js/StateCtrl.js +++ b/www/js/StateCtrl.js @@ -30,6 +30,18 @@ angular.module('zmApp.controllers').controller('zmApp.StateCtrl', ['$ionicPopup' getLoadStatus(); getDiskStatus(); + //------------------------------------------------------------------------- + // Lets make sure we set screen dim properly as we enter + // The problem is we enter other states before we leave previous states + // from a callback perspective in ionic, so we really can't predictably + // reset power state on exit as if it is called after we enter another + // state, that effectively overwrites current view power management needs + //------------------------------------------------------------------------ + $scope.$on('$ionicView.enter', function () { + console.log("**VIEW ** Montage Ctrl Entered"); + ZMDataModel.setAwake(false); + }); + //---------------------------------------------------------------------- // returns disk space in gigs taken up by events //---------------------------------------------------------------------- |
