Revert "Scan handling"
This commit is contained in:
parent
8f46973240
commit
641091e7d9
25 changed files with 129 additions and 511 deletions
|
|
@ -58,7 +58,6 @@ angular.module('copayApp.controllers').controller('tabScanController', function(
|
|||
$scope.$on("$ionicView.afterEnter", function() {
|
||||
// try initializing and refreshing status any time the view is entered
|
||||
scannerService.gentleInitialize();
|
||||
scannerService.resumePreview();
|
||||
});
|
||||
|
||||
function activate(){
|
||||
|
|
@ -96,15 +95,9 @@ angular.module('copayApp.controllers').controller('tabScanController', function(
|
|||
|
||||
function handleSuccessfulScan(contents){
|
||||
$log.debug('Scan returned: "' + contents + '"');
|
||||
scannerService.pausePreview();
|
||||
incomingData.redir(contents);
|
||||
}
|
||||
|
||||
$rootScope.$on('incomingDataMenu.menuHidden', function() {
|
||||
scannerService.resumePreview();
|
||||
activate();
|
||||
});
|
||||
|
||||
$scope.openSettings = function(){
|
||||
scannerService.openSettings();
|
||||
};
|
||||
|
|
@ -133,7 +126,7 @@ angular.module('copayApp.controllers').controller('tabScanController', function(
|
|||
|
||||
$scope.canGoBack = function(){
|
||||
return $state.params.passthroughMode;
|
||||
};
|
||||
}
|
||||
function goBack(){
|
||||
$ionicHistory.nextViewOptions({
|
||||
disableAnimate: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue