Handle the "back" button in the Document screen
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user