mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-24 03:36:51 +00:00
feat: Implement back button behavior for TV player controls
This commit is contained in:
@@ -123,6 +123,14 @@ fun TvPlayerScreen(
|
||||
}
|
||||
}
|
||||
|
||||
BackHandler(enabled = true) {
|
||||
if (controlsVisible) {
|
||||
viewModel.toggleControlsVisibility()
|
||||
return@BackHandler
|
||||
}
|
||||
onBack()
|
||||
}
|
||||
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.fillMaxSize()
|
||||
|
||||
Reference in New Issue
Block a user