Restore back button in CameraScreen and DocumentScreen (fix #74)

It was removed by mistake in 7c9267a
This commit is contained in:
Pierre-Yves Nicolas
2025-12-05 06:24:19 +01:00
parent 4a3a1f700f
commit 3a9cc642c7
2 changed files with 2 additions and 0 deletions

View File

@@ -103,6 +103,7 @@ fun DocumentScreen(
currentPageIndex = currentPageIndex.intValue, currentPageIndex = currentPageIndex.intValue,
listState = listState, listState = listState,
), ),
onBack = navigation.back,
bottomBar = { bottomBar = {
BottomBar(navigation) BottomBar(navigation)
}, },

View File

@@ -223,6 +223,7 @@ private fun CameraScreenScaffold(
MyScaffold( MyScaffold(
navigation = navigation, navigation = navigation,
pageListState = pageListState, pageListState = pageListState,
onBack = navigation.back,
bottomBar = { Bar(cameraUiState.pageCount, onFinalizePressed) } bottomBar = { Bar(cameraUiState.pageCount, onFinalizePressed) }
) { modifier -> ) { modifier ->
CameraPreviewBox( CameraPreviewBox(