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:
commit
2be15e98b6
2 changed files with 5 additions and 2 deletions
|
|
@ -410,8 +410,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
|
||||||
$scope.$on("$ionicView.afterLeave", function(event, data) {
|
$scope.$on("$ionicView.afterLeave", function(event, data) {
|
||||||
$interval.cancel(refreshInterval);
|
$interval.cancel(refreshInterval);
|
||||||
if ($window.StatusBar) {
|
if ($window.StatusBar) {
|
||||||
var statusBarColor = appConfigService.name == 'copay' ? '#192c3a' : '#1e3186';
|
$window.StatusBar.backgroundColorByHexString('#000000');
|
||||||
$window.StatusBar.backgroundColorByHexString(statusBarColor);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1251,6 +1251,10 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
|
||||||
if (screen.width < 768 && platformInfo.isCordova)
|
if (screen.width < 768 && platformInfo.isCordova)
|
||||||
screen.lockOrientation('portrait');
|
screen.lockOrientation('portrait');
|
||||||
|
|
||||||
|
if (StatusBar && ionic.Platform.isAndroid()) {
|
||||||
|
StatusBar.backgroundColorByHexString('#000000');
|
||||||
|
}
|
||||||
|
|
||||||
if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard && !platformInfo.isWP) {
|
if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard && !platformInfo.isWP) {
|
||||||
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
|
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);
|
||||||
cordova.plugins.Keyboard.disableScroll(true);
|
cordova.plugins.Keyboard.disableScroll(true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue