Skip to content

Commit 7598e6d

Browse files
committed
fix: Fix isBundleUpdating state after merge upstream changes
1 parent 2ce57a7 commit 7598e6d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/main/java/app/revanced/manager/ui/component/morphe/settings/PatchOptionsSection.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import androidx.lifecycle.compose.collectAsStateWithLifecycle
1515
import app.morphe.manager.R
1616
import app.revanced.manager.domain.manager.AppType
1717
import app.revanced.manager.domain.manager.PatchOptionsPreferencesManager
18+
import app.revanced.manager.domain.repository.PatchBundleRepository
1819
import app.revanced.manager.ui.component.morphe.shared.IconTextRow
1920
import app.revanced.manager.ui.component.morphe.shared.MorpheCard
2021
import app.revanced.manager.ui.viewmodel.DashboardViewModel
@@ -51,7 +52,7 @@ fun PatchOptionsSection(
5152

5253
// Track bundle update progress to show loading state
5354
val bundleUpdateProgress by dashboardViewModel.patchBundleRepository.bundleUpdateProgress.collectAsStateWithLifecycle(null)
54-
val isBundleUpdating = bundleUpdateProgress != null && bundleUpdateProgress!!.result == null
55+
val isBundleUpdating = bundleUpdateProgress != null && bundleUpdateProgress!!.result == PatchBundleRepository.BundleUpdateResult.None
5556

5657
// Collect bundle info to detect changes
5758
val bundleInfo by dashboardViewModel.patchBundleRepository.bundleInfoFlow.collectAsStateWithLifecycle(emptyMap())

0 commit comments

Comments
 (0)