Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@ class StatusBarPresenter private constructor(

private fun setStatusBarVisible(viewController: ViewController<*>, visible: Bool) {
val window = window.get() ?: return
val view = if (viewController.view != null) viewController.view else window.decorView
val view = if (viewController.isViewCreated) {
viewController.view ?: window.decorView
} else {
window.decorView
}
if (visible.isFalse) {
hideStatusBar(window, view)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public void ensureViewIsCreated() {
getView();
}

protected boolean isViewCreated() {
public boolean isViewCreated() {
return view != null;
}

Expand Down