Merge pull request #122 from Bitcoin-com/wallet/task/337

Improvement - 337 - Small fix: change color of the Android status bar
This commit is contained in:
Jean-Baptiste Dominguez 2018-05-21 16:28:50 +09:00 committed by GitHub
commit 2be15e98b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -410,8 +410,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
$scope.$on("$ionicView.afterLeave", function(event, data) {
$interval.cancel(refreshInterval);
if ($window.StatusBar) {
var statusBarColor = appConfigService.name == 'copay' ? '#192c3a' : '#1e3186';
$window.StatusBar.backgroundColorByHexString(statusBarColor);
$window.StatusBar.backgroundColorByHexString('#000000');
}
});

View file

@ -1251,6 +1251,10 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
if (screen.width < 768 && platformInfo.isCordova)
screen.lockOrientation('portrait');
if (StatusBar && ionic.Platform.isAndroid()) {
StatusBar.backgroundColorByHexString('#000000');
}
if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard && !platformInfo.isWP) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
cordova.plugins.Keyboard.disableScroll(true);