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) {
|
||||
if (window.StatusBar) {
|
||||
$log.debug('Hiding status bar...');
|
||||
StatusBar.hide();
|
||||
}
|
||||
|
||||
storageService.getFeedbackInfo(function(error, info) {
|
||||
var feedbackInfo = lodash.isString(info) ? JSON.parse(info) : null;
|
||||
|
|
@ -95,13 +91,6 @@ angular.module('copayApp.controllers').controller('completeController', function
|
|||
}, 100);
|
||||
});
|
||||
|
||||
$scope.$on("$ionicView.afterLeave", function() {
|
||||
if (window.StatusBar) {
|
||||
$log.debug('Showing status bar...');
|
||||
StatusBar.show();
|
||||
}
|
||||
});
|
||||
|
||||
$scope.close = function() {
|
||||
$ionicHistory.clearHistory();
|
||||
$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() {
|
||||
$state.go('tabs.rate.send', {
|
||||
score: $scope.score
|
||||
|
|
|
|||
|
|
@ -750,17 +750,11 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
|||
templateUrl: 'views/feedback/send.html',
|
||||
controller: 'sendController'
|
||||
}
|
||||
},
|
||||
customConfig: {
|
||||
hideStatusBar: true
|
||||
}
|
||||
})
|
||||
.state('tabs.rate', {
|
||||
url: '/rate',
|
||||
abstract: true,
|
||||
customConfig: {
|
||||
hideStatusBar: true
|
||||
}
|
||||
abstract: true
|
||||
})
|
||||
.state('tabs.rate.send', {
|
||||
url: '/send/:score',
|
||||
|
|
@ -769,9 +763,6 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
|||
templateUrl: 'views/feedback/send.html',
|
||||
controller: 'sendController'
|
||||
}
|
||||
},
|
||||
customConfig: {
|
||||
hideStatusBar: true
|
||||
}
|
||||
})
|
||||
.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(' toParams:' + JSON.stringify(toParams || {}));
|
||||
$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) {
|
||||
console.log('hiding status bar');
|
||||
if($window.StatusBar) {
|
||||
$window.StatusBar.hide();
|
||||
}
|
||||
} else {
|
||||
console.log('showing status bar');
|
||||
if($window.StatusBar) {
|
||||
$window.StatusBar.show();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue