mirror of
https://github.com/nacabaro/vbhelper.git
synced 2026-01-27 16:05:32 +00:00
Forgot to reset the state of the scan...
Thus making scan innaccessible
This commit is contained in:
parent
d40758dc02
commit
2f0555484e
@ -63,6 +63,9 @@ class MainActivity : ComponentActivity() {
|
||||
isDoneReadingCharacter = true
|
||||
"Done reading character"
|
||||
}
|
||||
},
|
||||
onClickScan = {
|
||||
isDoneReadingCharacter = false
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@ -16,6 +16,7 @@ import com.github.nacabaro.vbhelper.screens.StorageScreen
|
||||
@Composable
|
||||
fun AppNavigation(
|
||||
onClickRead: () -> Unit,
|
||||
onClickScan: () -> Unit,
|
||||
isDoneReadingCharacter: Boolean
|
||||
) {
|
||||
val navController = rememberNavController()
|
||||
@ -41,6 +42,7 @@ fun AppNavigation(
|
||||
StorageScreen()
|
||||
}
|
||||
composable(BottomNavItem.Scan.route) {
|
||||
onClickScan()
|
||||
ScanScreen(
|
||||
navController = navController,
|
||||
onClickRead = onClickRead,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user