mirror of https://github.com/BTCPrivate/copay.git
Fix pause for iOS
This commit is contained in:
parent
2d11555eab
commit
71db4d05f9
|
@ -155,7 +155,9 @@ angular.module('copayApp.controllers').controller('MoreController',
|
|||
};
|
||||
|
||||
$scope.sendWalletBackup = function() {
|
||||
window.ignoreMobilePause = true;
|
||||
if (!isMobile.iOS) {
|
||||
window.ignoreMobilePause = true;
|
||||
}
|
||||
window.plugins.toast.showShortCenter('Preparing backup...');
|
||||
var name = (w.name || w.id);
|
||||
var ew = backupService.walletEncrypted(w);
|
||||
|
|
|
@ -25,7 +25,9 @@ angular.module('copayApp.controllers').controller('ProfileController', function(
|
|||
};
|
||||
|
||||
$scope.sendProfileBackup = function() {
|
||||
window.ignoreMobilePause = true;
|
||||
if (!isMobile.iOS) {
|
||||
window.ignoreMobilePause = true;
|
||||
}
|
||||
window.plugins.toast.showShortCenter('Preparing backup...');
|
||||
var name = $rootScope.iden.fullName;
|
||||
var ep = backupService.profileEncrypted($rootScope.iden);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('ReceiveController',
|
||||
function($scope, $rootScope, $timeout, $modal, isCordova) {
|
||||
function($scope, $rootScope, $timeout, $modal, isCordova, isMobile) {
|
||||
|
||||
$scope.newAddr = function() {
|
||||
var w = $rootScope.wallet;
|
||||
|
@ -19,7 +19,9 @@ angular.module('copayApp.controllers').controller('ReceiveController',
|
|||
|
||||
$scope.shareAddress = function(addr) {
|
||||
if (isCordova) {
|
||||
window.ignoreMobilePause = true;
|
||||
if (!isMobile.iOS) {
|
||||
window.ignoreMobilePause = true;
|
||||
}
|
||||
window.plugins.socialsharing.share('My bitcoin address: ' + addr, null, null, null);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue