From 8dbeb0971cfed3b14959b098e89c288c4d17df3b Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Mon, 14 Dec 2015 12:23:56 -0300 Subject: [PATCH] Hide status-bar after sign/reject/send a tx --- src/js/services/txStatus.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/js/services/txStatus.js b/src/js/services/txStatus.js index 8456d85d1..78253c7f1 100644 --- a/src/js/services/txStatus.js +++ b/src/js/services/txStatus.js @@ -1,6 +1,6 @@ 'use strict'; -angular.module('copayApp.services').factory('txStatus', function($modal, lodash, profileService, $timeout, txFormatService) { +angular.module('copayApp.services').factory('txStatus', function($modal, lodash, profileService, $timeout, txFormatService, isCordova) { var root = {}; root.notify = function(txp, cb) { @@ -47,6 +47,9 @@ angular.module('copayApp.services').factory('txStatus', function($modal, lodash, $scope.type = type; $scope.tx = txFormatService.processTx(txp); $scope.color = fc.backgroundColor; + if (isCordova && StatusBar.isVisible) { + StatusBar.hide(); + } $scope.cancel = function() { $modalInstance.dismiss('cancel'); }; @@ -59,6 +62,9 @@ angular.module('copayApp.services').factory('txStatus', function($modal, lodash, }); modalInstance.result.finally(function() { + if (isCordova && !StatusBar.isVisible) { + StatusBar.show(); + } var m = angular.element(document.getElementsByClassName('reveal-modal')); m.addClass('hideModal'); });