Skip to content

Commit

Permalink
fix: correctly check if activity is null in ApkInstallationSessionCal…
Browse files Browse the repository at this point in the history
…lback
  • Loading branch information
teixeira0x committed Dec 11, 2024
1 parent 895dbd2 commit 18573ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ApkInstallationSessionCallback(
}

override fun onProgressChanged(sessionId: Int, progress: Float) {
if (activity.editorViewModel.isBuildInProgress) {
if (activity?.editorViewModel?.isBuildInProgress ?: true) {
// Build in progress does not update bottom sheet action.
return
}
Expand Down

0 comments on commit 18573ef

Please sign in to comment.