fix update on resume

This commit is contained in:
Matias Alejo Garcia 2015-04-28 19:26:22 -03:00
commit 9abccdba41
4 changed files with 31 additions and 13 deletions

View file

@ -45,10 +45,22 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
self.resetForm();
});
var disableResumeListener = $rootScope.$on('Local/Resume', function() {
self.bindTouchDown();
var disableOnlineListener = $rootScope.$on('Local/Online', function() {
// This is needed then the apps go to sleep
$timeout(function() {
self.bindTouchDown();
}, 2000);
});
var disableResumeListener = $rootScope.$on('Local/Resume', function() {
// This is needed then the apps go to sleep
$timeout(function() {
self.bindTouchDown();
}, 2000);
});
var disableTabListener = $rootScope.$on('Local/TabChanged', function(e, tab) {
// This will slow down switch, do not add things here!
switch (tab) {
@ -68,6 +80,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
disableTabListener();
disableFocusListener();
disableResumeListener();
disableOnlineListener();
$rootScope.hideMenuBar = false;
});