Skip to content
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

[Android] Statusbar doesn't remember background color when overlay mode changes #159

Open
3 tasks done
breautek opened this issue Oct 2, 2019 · 0 comments · May be fixed by #172
Open
3 tasks done

[Android] Statusbar doesn't remember background color when overlay mode changes #159

breautek opened this issue Oct 2, 2019 · 0 comments · May be fixed by #172

Comments

@breautek
Copy link
Contributor

breautek commented Oct 2, 2019

Bug Report

Problem

The statusbar forgets its background color when StatusBar.overlaysWebView(true) is invoked or toggled.

What is expected to happen?

The statusbar to retain its background color when overlaysWebView is called. overlaysWebView should only change the overlay state, not the statusbar color.

What does actually happen?

The statusbar always goes to a completely transparent color on StatusBar.overlaysWebView(true)

Information

Originally the bug was discovered at #155 (comment)

Command or Code

StatusBar.overlaysWebView(true);
StatusBar.backgroundColorByHexString('#33000000'); // Statusbar is a slightly transparent gray here, as expected
...
StatusBar.overlaysWebView(false); // statusbar goes black as expected
...
StatusBar.overlaysWebView(true); // statusbar should be slightly transparent gray

Another example:

StatusBar.backgroundColorByHexString('#FF0000'); // status bar is red
StatusBar.overlaysWebView(true); // status bar is overlayed but loses its color.
StatusBar.overlaysWebView(false); // status bar goes back to black, should be red

Environment, Platform, Device

Android 9

Version information

Cordova 9, cordova-android 9, statusbar 2.4.3

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant