Merge pull request #153 from Bitcoin-com/wallet/task/358
Improvement - 358 - Workflow camera permission
This commit is contained in:
commit
437bd77ba4
1 changed files with 7 additions and 4 deletions
|
|
@ -60,11 +60,14 @@ angular.module('copayApp.controllers').controller('tabScanController', function(
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.$on("$ionicView.afterEnter", function() {
|
$scope.$on("$ionicView.afterEnter", function() {
|
||||||
// try initializing and refreshing status any time the view is entered
|
var capabilities = scannerService.getCapabilities();
|
||||||
if(!scannerService.isInitialized()) {
|
if (capabilities.hasPermission) {
|
||||||
scannerService.gentleInitialize();
|
// try initializing and refreshing status any time the view is entered
|
||||||
|
if(!scannerService.isInitialized()) {
|
||||||
|
scannerService.gentleInitialize();
|
||||||
|
}
|
||||||
|
activate();
|
||||||
}
|
}
|
||||||
activate();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function activate(){
|
function activate(){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue