Skip to content

Commit

Permalink
fix null (probably in race conditions)
Browse files Browse the repository at this point in the history
  • Loading branch information
hg42 committed Jul 12, 2024
1 parent 7d40355 commit 87bd51c
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions app/src/main/java/com/machiav3lli/backup/pages/HomePage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,17 @@ fun HomePage() {
scope.launch { appSheetState.hide() }
appSheetPN.value = null
}
Sheet(
sheetState = appSheetState,
onDismissRequest = dismiss
) {
AppSheet(
viewModel = appSheetVM!!,
packageName = appSheetPN.value ?: "",
onDismiss = dismiss,
)
appSheetVM?.let { vm ->
Sheet(
sheetState = appSheetState,
onDismissRequest = dismiss
) {
AppSheet(
viewModel = vm,
packageName = appSheetPN.value ?: "",
onDismiss = dismiss,
)
}
}
}
if (openBatchDialog.value) BaseDialog(openDialogCustom = openBatchDialog) {
Expand Down

0 comments on commit 87bd51c

Please sign in to comment.