-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Statusbar Color not applied immediately if you have a splash screen #145
Comments
How did you set up the splashscreen? Is this reproducible in a new, plain Cordova app? A minimal reproduction repository would really help to debug and later fix this issue. More information on how to create one: https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md |
Repo - https://github.com/AssetKid/cordova-statusbar-repro The project is made using vue.js and vue-cli-plugin-cordova. Not sure if that might be the issue. Setup
|
Confirmed this is an issue. If the status bar color is being set via JavaScript API such as
Note I only tested on Android. |
Is this more a statusbar or more a splashscreen problem @breautek? |
I had a quick look at the source code last night before bed and it wasn't immediately obvious @janpio . This leads me to believe that perhaps something in |
I think the way the native splash view is built and presented doesn’t allow to style the status bar |
There's actually a pending PR in splashscreen that appears to address this issue. |
This problem still exists and I tried to find where the black bars are coming from. a. in the file splashscreen.java the defaut theme android.R.style.Theme_Translucent_NoTitleBar is loaded to build the dialogue and this of course overwrites everything that you have set up before. I solved it to overwrite this file to access my own module style.
|
Bug Report
Problem
If you have a splash screen, the status bar color is only applied after the app loads... Not on startup.
Similar report #104
What is expected to happen?
Status bar color should be applied immediately.
What does actually happen?
Status bar color is not applied immediately.
Information
Command or Code
npm run android
Environment, Platform, Device
Tested on Android 8.0 & 9.0 (Device & Emulator)
Version information
CLI
Platfrom
Plugins
Checklist
The text was updated successfully, but these errors were encountered: