Fix camera spinner for slow devices
This commit is contained in:
parent
e9afb8cf7f
commit
783d562c9c
1 changed files with 24 additions and 22 deletions
|
|
@ -4,6 +4,7 @@ angular.module('copayApp.controllers').controller('topbarController', function($
|
||||||
var cordovaOpenScanner = function() {
|
var cordovaOpenScanner = function() {
|
||||||
window.ignoreMobilePause = true;
|
window.ignoreMobilePause = true;
|
||||||
window.plugins.spinnerDialog.show(null, 'Preparing camera...', true);
|
window.plugins.spinnerDialog.show(null, 'Preparing camera...', true);
|
||||||
|
$timeout(function() {
|
||||||
cordova.plugins.barcodeScanner.scan(
|
cordova.plugins.barcodeScanner.scan(
|
||||||
function onSuccess(result) {
|
function onSuccess(result) {
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
|
|
@ -26,6 +27,7 @@ angular.module('copayApp.controllers').controller('topbarController', function($
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
go.send();
|
go.send();
|
||||||
|
}, 100);
|
||||||
};
|
};
|
||||||
|
|
||||||
var modalOpenScanner = function() {
|
var modalOpenScanner = function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue