import profile/wallet on android
This commit is contained in:
parent
88d125e1be
commit
5a252f8ae8
5 changed files with 21 additions and 7 deletions
|
|
@ -99,11 +99,11 @@ angular.module('copayApp.controllers').controller('JoinController',
|
|||
};
|
||||
|
||||
$scope.scannerIntent = function() {
|
||||
window.usingCamera = true;
|
||||
window.ignoreMobilePause = true;
|
||||
cordova.plugins.barcodeScanner.scan(
|
||||
function onSuccess(result) {
|
||||
$timeout(function(){
|
||||
window.usingCamera = false;
|
||||
window.ignoreMobilePause = false;
|
||||
}, 100);
|
||||
if (result.cancelled) return;
|
||||
|
||||
|
|
@ -112,7 +112,7 @@ angular.module('copayApp.controllers').controller('JoinController',
|
|||
},
|
||||
function onError(error) {
|
||||
$timeout(function(){
|
||||
window.usingCamera = false;
|
||||
window.ignoreMobilePause = false;
|
||||
}, 100);
|
||||
alert('Scanning error');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue