Skip to content
Open
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
4 changes: 2 additions & 2 deletions sceneview/src/main/java/io/github/sceneview/SceneView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,8 @@ open class SceneView @JvmOverloads constructor(
})

lifecycle?.addObserver(lifecycleObserver)

keepScreenOn = true
}

/**
Expand Down Expand Up @@ -897,8 +899,6 @@ open class SceneView @JvmOverloads constructor(
// to avoid getting called twice.
Choreographer.getInstance().removeFrameCallback(frameCallback)
Choreographer.getInstance().postFrameCallback(frameCallback)

activity?.setKeepScreenOn(true)
}

override fun onPause(owner: LifecycleOwner) {
Expand Down