Revert "Scan handling"

This commit is contained in:
Matias Alejo Garcia 2016-10-22 23:28:24 -03:00 committed by GitHub
commit 641091e7d9
25 changed files with 129 additions and 511 deletions

View file

@ -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