Skip to content

全屏的实现是不是反了? #33

@dotfeng

Description

@dotfeng

inline var Activity.isFullScreen: Boolean
get() = window.decorView.rootWindowInsetsCompat?.isVisible(WindowInsetsCompat.Type.systemBars()) == true
set(value) {
window.decorView.windowInsetsControllerCompat?.run {
val systemBars = WindowInsetsCompat.Type.systemBars()
if (value) show(systemBars) else hide(systemBars)
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions