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.Bitmap
|
||||||
import android.graphics.BitmapFactory
|
import android.graphics.BitmapFactory
|
||||||
|
import androidx.activity.compose.BackHandler
|
||||||
import androidx.compose.foundation.Image
|
import androidx.compose.foundation.Image
|
||||||
import androidx.compose.foundation.background
|
import androidx.compose.foundation.background
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
@@ -89,6 +90,9 @@ fun DocumentScreen(
|
|||||||
toCameraScreen()
|
toCameraScreen()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
BackHandler {
|
||||||
|
toCameraScreen()
|
||||||
|
}
|
||||||
Scaffold (
|
Scaffold (
|
||||||
topBar = {
|
topBar = {
|
||||||
TopAppBar(
|
TopAppBar(
|
||||||
|
|||||||
Reference in New Issue
Block a user