Handle the "back" button in the Document screen

This commit is contained in:
Pierre-Yves Nicolas
2025-07-06 14:46:38 +02:00
parent 2455f2cfc7
commit 8cedcac92f

View File

@@ -16,6 +16,7 @@ package org.mydomain.myscan.view
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
@@ -89,6 +90,9 @@ fun DocumentScreen(
toCameraScreen()
return
}
BackHandler {
toCameraScreen()
}
Scaffold (
topBar = {
TopAppBar(