mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-17 07:21:58 +00:00
feat: add back navigation handler to FolderEditorPage
This commit is contained in:
parent
4277b800a5
commit
f67698e4fd
1 changed files with 5 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.runtime.LaunchedEffect
|
import androidx.compose.runtime.LaunchedEffect
|
||||||
import androidx.compose.runtime.collectAsState
|
import androidx.compose.runtime.collectAsState
|
||||||
import androidx.compose.runtime.getValue
|
import androidx.compose.runtime.getValue
|
||||||
|
import androidx.activity.compose.BackHandler
|
||||||
import androidx.compose.ui.Alignment
|
import androidx.compose.ui.Alignment
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.draw.clip
|
import androidx.compose.ui.draw.clip
|
||||||
|
|
@ -505,6 +506,10 @@ private fun FolderEditorPage(
|
||||||
val folder = state.editingFolder ?: return
|
val folder = state.editingFolder ?: return
|
||||||
val bottomInset = nuvioPlatformExtraBottomPadding
|
val bottomInset = nuvioPlatformExtraBottomPadding
|
||||||
|
|
||||||
|
BackHandler {
|
||||||
|
onBack()
|
||||||
|
}
|
||||||
|
|
||||||
Box(modifier = Modifier.fillMaxSize()) {
|
Box(modifier = Modifier.fillMaxSize()) {
|
||||||
NuvioScreen(modifier = Modifier.fillMaxSize()) {
|
NuvioScreen(modifier = Modifier.fillMaxSize()) {
|
||||||
stickyHeader {
|
stickyHeader {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue