From 2d4da9af7dcf2dd87cd77152f34f5753f53140cd Mon Sep 17 00:00:00 2001 From: Norwin Roosen Date: Sat, 16 Feb 2019 22:08:13 +0100 Subject: [PATCH] fix hidden status bar on android --- src/app/app.component.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 4ffe894..944442a 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -33,10 +33,12 @@ export class openSenseApp { this.translate.use(this.translate.getBrowserLang()) // @TODO: check if this works on all platforms! // @TODO: also pass language to blockly (if possible?) - statusBar.styleDefault(); - splashScreen.hide(); - - splashScreen.hide() + if ((window).cordova) { + statusBar.overlaysWebView(false) + statusBar.backgroundColorByHexString(COLORS.PRIMARY) + statusBar.styleLightContent() + splashScreen.hide() + } }) }