-
Notifications
You must be signed in to change notification settings - Fork 1k
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
bug: Splash screen does not respect navigationBar color setting #2422
Comments
this would need a new configuration option for Splash plugin to set the Navigation Bar color |
I'm having few issues implementing this inside if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
a.getWindow().setNavigationBarColor(Color.rgb(0, 0, 0));
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
a.getWindow().setNavigationBarDividerColor(Color.rgb(0, 0, 0));
} |
looks like it got fixed by #2603 |
Nice! I'll test this tomorrow. I think https://github.com/ionic-team/capacitor/pull/2603/files#diff-ecbcf16403a887804cbb3a64cbe56e6dR57 might also fix "jump" effect I had in this PR #2425 but I will confirm for sure once I'm next to my mac. |
yes, it does |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Bug Report
Capacitor Version
Affected Platform(s)
Current Behavior
I have custom code in my
MainApplication.java
file that sets android's navbar color to black.It works initially when I launch my app, but after it goes to capacitor splash screen, color is changed back to default android one, which in my case happens to be light grey (samsung galaxy s8). Gif below demonstrates this: notice how it goes from black -> default gray
Expected Behavior
Should keep navbar black all the time.
Sample Code or Sample Application Repo
This is my
MainApplication.java
andsetAndroidUiColor();
is what sets color of navbar to be black.Reproduction Steps
You can add
setAndroidUiColor();
implementation to default capacitor app and launch it in simulator on a samsung galaxy s8 device, or perhaps newer model, I assume they will run similar version of android.Other Technical Details
npm --version
output: 6.13.4node --version
output:v12.14.1pod --version
output (iOS issues only): 1.8.4Other Information
This is happening on android 9 for me. I also don't see it on all devices i.e. simulator for pixel 3 seems ok, but I think default color for navbar there is transparent, so it could be setting it back to transparent and blending with black background.
The text was updated successfully, but these errors were encountered: