Resume event is still needed

This commit is contained in:
Gustavo Maximiliano Cortez 2015-06-27 21:24:31 -03:00
commit e2a334238d
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

View file

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