mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-11 21:56:17 +00:00
fix: Correctly display universal patches warning (#2570)
This commit is contained in:
@@ -230,8 +230,8 @@ fun PatchesSelectorScreen(
|
|||||||
// Show selection warning if enabled
|
// Show selection warning if enabled
|
||||||
viewModel.selectionWarningEnabled -> showSelectionWarning = true
|
viewModel.selectionWarningEnabled -> showSelectionWarning = true
|
||||||
|
|
||||||
// Show universal warning if enabled
|
// Show universal warning if universal patch is selected and the toggle is off
|
||||||
viewModel.universalPatchWarningEnabled -> showUniversalWarning = true
|
patch.compatiblePackages == null && viewModel.universalPatchWarningEnabled -> showUniversalWarning = true
|
||||||
|
|
||||||
// Toggle the patch otherwise
|
// Toggle the patch otherwise
|
||||||
else -> viewModel.togglePatch(uid, patch)
|
else -> viewModel.togglePatch(uid, patch)
|
||||||
|
|||||||
Reference in New Issue
Block a user