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

Update StatusBar.java #142

Closed
wants to merge 2 commits into from
Closed

Update StatusBar.java #142

wants to merge 2 commits into from

Conversation

oarsheo
Copy link

@oarsheo oarsheo commented Jun 13, 2019

Read 'StatusBarOverlaysWebView' from config.xml, default is false.

setStatusBarTransparent(preferences.getBoolean("StatusBarOverlaysWebView", false));

@janpio
Copy link
Member

janpio commented Jun 13, 2019

Can you please provide some context for this change?
Why is this needed? What problem does it solve?

@oarsheo
Copy link
Author

oarsheo commented Jun 14, 2019

Parameter StatusBarOverlaysWebView for android not working
This commit solves this problem

@breautek
Copy link
Contributor

breautek commented Sep 3, 2019

Just want to make a point that the docs currently states this defaults to true, but obviously doing so may break apps that depends on the android's broken result, ie no status bar overlay by default)

Copy link
Member

@timbru31 timbru31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your PR!

I'd like to discuss the intended default behavior with other members, though. (Thanks @breautek for the hint with the docs).
Calling some random ppl: @janpio, @dpogue, @jcesarmobile - what's your opinion on this?

@@ -105,6 +108,8 @@ public void run() {
// CB-11197 We still need to update LayoutParams to force status bar
// to be hidden when entering e.g. text fields
window.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);

setStatusBarTransparent(true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this line related to the bug #151 or unrelated?

@@ -64,6 +64,9 @@ public void run() {

// Read 'StatusBarStyle' from config.xml, default is 'lightcontent'.
setStatusBarStyle(preferences.getString("StatusBarStyle", "lightcontent"));

// Read 'StatusBarOverlaysWebView' from config.xml, default is false.
setStatusBarTransparent(preferences.getBoolean("StatusBarOverlaysWebView", false));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While the default is broken, I'd rather fix the bug in the way that it corresponds with the docs, i.e., true.

@mosabab
Copy link

mosabab commented Nov 8, 2019

When this PR will be done ?

@timbru31
Copy link
Member

timbru31 commented Jan 8, 2021

Closing due to inactivity and we've merged in #171 which correctly reads the variable as true, like it's stated. Nevertheless, thanks for your contribution and bringing this to our attention!

@timbru31 timbru31 closed this Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants