Skip to content

Commit 18573ef

Browse files
committed
fix: correctly check if activity is null in ApkInstallationSessionCallback
1 parent 895dbd2 commit 18573ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/app/src/main/java/com/itsaky/androidide/utils/ApkInstallationSessionCallback.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ApkInstallationSessionCallback(
4444
}
4545

4646
override fun onProgressChanged(sessionId: Int, progress: Float) {
47-
if (activity.editorViewModel.isBuildInProgress) {
47+
if (activity?.editorViewModel?.isBuildInProgress ?: true) {
4848
// Build in progress does not update bottom sheet action.
4949
return
5050
}

0 commit comments

Comments
 (0)