From 2979861ab0ba2f63414740d5df69edc98449dbb4 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Tue, 3 Feb 2015 17:27:11 -0200 Subject: [PATCH] Fix pause event for Android and WP --- js/controllers/more.js | 2 +- js/controllers/profile.js | 2 +- js/controllers/receive.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/controllers/more.js b/js/controllers/more.js index 499bb6e5d..ec3b81c3c 100644 --- a/js/controllers/more.js +++ b/js/controllers/more.js @@ -155,7 +155,7 @@ angular.module('copayApp.controllers').controller('MoreController', }; $scope.sendWalletBackup = function() { - if (!isMobile.iOS) { + if (isMobile.Android() || isMobile.Windows()) { window.ignoreMobilePause = true; } window.plugins.toast.showShortCenter('Preparing backup...'); diff --git a/js/controllers/profile.js b/js/controllers/profile.js index 7bdc2525b..ff5708c8e 100644 --- a/js/controllers/profile.js +++ b/js/controllers/profile.js @@ -25,7 +25,7 @@ angular.module('copayApp.controllers').controller('ProfileController', function( }; $scope.sendProfileBackup = function() { - if (!isMobile.iOS) { + if (isMobile.Android() || isMobile.Windows()) { window.ignoreMobilePause = true; } window.plugins.toast.showShortCenter('Preparing backup...'); diff --git a/js/controllers/receive.js b/js/controllers/receive.js index 7be9d5b75..04e0a0da7 100644 --- a/js/controllers/receive.js +++ b/js/controllers/receive.js @@ -19,7 +19,7 @@ angular.module('copayApp.controllers').controller('ReceiveController', $scope.shareAddress = function(addr) { if (isCordova) { - if (!isMobile.iOS) { + if (isMobile.Android() || isMobile.Windows()) { window.ignoreMobilePause = true; } window.plugins.socialsharing.share('My bitcoin address: ' + addr, null, null, null);