remove old status bar hiding code
This commit is contained in:
parent
1f91ba9e46
commit
46a0303586
3 changed files with 3 additions and 39 deletions
|
|
@ -31,10 +31,6 @@ angular.module('copayApp.controllers').controller('completeController', function
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||||
if (window.StatusBar) {
|
|
||||||
$log.debug('Hiding status bar...');
|
|
||||||
StatusBar.hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
storageService.getFeedbackInfo(function(error, info) {
|
storageService.getFeedbackInfo(function(error, info) {
|
||||||
var feedbackInfo = lodash.isString(info) ? JSON.parse(info) : null;
|
var feedbackInfo = lodash.isString(info) ? JSON.parse(info) : null;
|
||||||
|
|
@ -95,13 +91,6 @@ angular.module('copayApp.controllers').controller('completeController', function
|
||||||
}, 100);
|
}, 100);
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.$on("$ionicView.afterLeave", function() {
|
|
||||||
if (window.StatusBar) {
|
|
||||||
$log.debug('Showing status bar...');
|
|
||||||
StatusBar.show();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$scope.close = function() {
|
$scope.close = function() {
|
||||||
$ionicHistory.clearHistory();
|
$ionicHistory.clearHistory();
|
||||||
$ionicHistory.nextViewOptions({
|
$ionicHistory.nextViewOptions({
|
||||||
|
|
|
||||||
|
|
@ -29,20 +29,6 @@ angular.module('copayApp.controllers').controller('rateAppController', function(
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.$on("$ionicView.beforeEnter", function() {
|
|
||||||
if(window.StatusBar){
|
|
||||||
$log.debug('Hiding status bar...');
|
|
||||||
StatusBar.hide();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$scope.$on("$ionicView.afterLeave", function() {
|
|
||||||
if(window.StatusBar){
|
|
||||||
$log.debug('Showing status bar...');
|
|
||||||
StatusBar.show();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$scope.sendFeedback = function() {
|
$scope.sendFeedback = function() {
|
||||||
$state.go('tabs.rate.send', {
|
$state.go('tabs.rate.send', {
|
||||||
score: $scope.score
|
score: $scope.score
|
||||||
|
|
|
||||||
|
|
@ -750,17 +750,11 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
templateUrl: 'views/feedback/send.html',
|
templateUrl: 'views/feedback/send.html',
|
||||||
controller: 'sendController'
|
controller: 'sendController'
|
||||||
}
|
}
|
||||||
},
|
|
||||||
customConfig: {
|
|
||||||
hideStatusBar: true
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.state('tabs.rate', {
|
.state('tabs.rate', {
|
||||||
url: '/rate',
|
url: '/rate',
|
||||||
abstract: true,
|
abstract: true
|
||||||
customConfig: {
|
|
||||||
hideStatusBar: true
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
.state('tabs.rate.send', {
|
.state('tabs.rate.send', {
|
||||||
url: '/send/:score',
|
url: '/send/:score',
|
||||||
|
|
@ -769,9 +763,6 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
templateUrl: 'views/feedback/send.html',
|
templateUrl: 'views/feedback/send.html',
|
||||||
controller: 'sendController'
|
controller: 'sendController'
|
||||||
}
|
}
|
||||||
},
|
|
||||||
customConfig: {
|
|
||||||
hideStatusBar: true
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.state('tabs.rate.complete', {
|
.state('tabs.rate.complete', {
|
||||||
|
|
@ -1107,16 +1098,14 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
$log.debug('Route change from:', fromState.name || '-', ' to:', toState.name);
|
$log.debug('Route change from:', fromState.name || '-', ' to:', toState.name);
|
||||||
$log.debug(' toParams:' + JSON.stringify(toParams || {}));
|
$log.debug(' toParams:' + JSON.stringify(toParams || {}));
|
||||||
$log.debug(' fromParams:' + JSON.stringify(fromParams || {}));
|
$log.debug(' fromParams:' + JSON.stringify(fromParams || {}));
|
||||||
|
});
|
||||||
|
|
||||||
console.log('toState', toState);
|
$rootScope.$on('$stateChangeSuccess', function(event, toState, toParams, fromState, fromParams) {
|
||||||
|
|
||||||
if(toState.customConfig && toState.customConfig.hideStatusBar) {
|
if(toState.customConfig && toState.customConfig.hideStatusBar) {
|
||||||
console.log('hiding status bar');
|
|
||||||
if($window.StatusBar) {
|
if($window.StatusBar) {
|
||||||
$window.StatusBar.hide();
|
$window.StatusBar.hide();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log('showing status bar');
|
|
||||||
if($window.StatusBar) {
|
if($window.StatusBar) {
|
||||||
$window.StatusBar.show();
|
$window.StatusBar.show();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue