mirror of https://github.com/BTCPrivate/copay.git
Not pause the device if user share or send the backup by email
This commit is contained in:
parent
14531839af
commit
2d11555eab
|
@ -155,6 +155,7 @@ angular.module('copayApp.controllers').controller('MoreController',
|
|||
};
|
||||
|
||||
$scope.sendWalletBackup = function() {
|
||||
window.ignoreMobilePause = true;
|
||||
window.plugins.toast.showShortCenter('Preparing backup...');
|
||||
var name = (w.name || w.id);
|
||||
var ew = backupService.walletEncrypted(w);
|
||||
|
|
|
@ -25,6 +25,7 @@ angular.module('copayApp.controllers').controller('ProfileController', function(
|
|||
};
|
||||
|
||||
$scope.sendProfileBackup = function() {
|
||||
window.ignoreMobilePause = true;
|
||||
window.plugins.toast.showShortCenter('Preparing backup...');
|
||||
var name = $rootScope.iden.fullName;
|
||||
var ep = backupService.profileEncrypted($rootScope.iden);
|
||||
|
|
|
@ -19,7 +19,8 @@ angular.module('copayApp.controllers').controller('ReceiveController',
|
|||
|
||||
$scope.shareAddress = function(addr) {
|
||||
if (isCordova) {
|
||||
window.plugins.socialsharing.share('My bitcoin address: ' + addr);
|
||||
window.ignoreMobilePause = true;
|
||||
window.plugins.socialsharing.share('My bitcoin address: ' + addr, null, null, null);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -17,6 +17,12 @@ angular.element(document).ready(function() {
|
|||
}
|
||||
}, false);
|
||||
|
||||
document.addEventListener('resume', function() {
|
||||
setTimeout(function() {
|
||||
window.ignoreMobilePause = false;
|
||||
}, 100);
|
||||
}, false);
|
||||
|
||||
document.addEventListener('backbutton', function() {
|
||||
window.location = '#!/homeWallet';
|
||||
}, false);
|
||||
|
|
Loading…
Reference in New Issue