Skip to content

Commit

Permalink
fix: use navController.navigateUp
Browse files Browse the repository at this point in the history
  • Loading branch information
hpp2334 committed Nov 24, 2024
1 parent 140b949 commit 0be6eb2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.pager.rememberPagerState
import androidx.compose.material3.Scaffold
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.Modifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class RouterService : IRouterServiceForeign {

override fun pop() {
if (_navigatorController != null) {
_navigatorController!!.popBackStack()
_navigatorController!!.navigateUp()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,14 +436,9 @@ fun PlaylistPage(
val state = evm.currentPlaylistState.collectAsState().value
val currentMusicState = evm.currentMusicState.collectAsState().value
var removeDialogOpen by remember { mutableStateOf(false) }
val id = state.id

val items = state.items

if (id == null) {
return
}

Box(
modifier = Modifier
.background(Color.White)
Expand Down

0 comments on commit 0be6eb2

Please sign in to comment.