I have trouble with hiding status bar on Android Q. When I hide it in split-view, it becomes white, instead of black. But if I'm not in split-view, everything is ok. How I do it:
public void hideSystemUI() {
getWindow().getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_STABLE
| View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
| View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
| View.SYSTEM_UI_FLAG_HIDE_NAVIGATION // hide nav bar
| View.SYSTEM_UI_FLAG_FULLSCREEN // hide status bar
| View.SYSTEM_UI_FLAG_IMMERSIVE);
}
Is it just a bug or should I use some another way? I tried the way from official documentation, but it works terribly and the bar is white anyway.
NOTE: The problem it's white, not in that it's not hiding and only in split-screen mode. Fullscreen is not an option, I need to hide it dynamically. It's specific for Q only! It's not a duplicate. Please read carefully.