Skip to content

Commit d5671db

Browse files
committed
fix: Instantly re-fetch patch bundle on pre-release preference update
Closes #2784
1 parent a314ba2 commit d5671db

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/src/main/java/app/revanced/manager/ui/component/bundle/BundleInformationDialog.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,15 @@ fun BundleInformationDialog(
190190
prefs.usePatchesPrereleases.update(
191191
it
192192
)
193+
onUpdate()
193194
}
194195
}
195196
)
196197
},
197198
modifier = Modifier.clickable {
198199
composableScope.launch {
199200
prefs.usePatchesPrereleases.update(!useBundlePrerelease)
201+
onUpdate()
200202
}
201203
}
202204
)

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@
438438
<string name="add_patches">Add patches</string>
439439
<string name="auto_update_description">Automatically update when a new version is available</string>
440440
<string name="patches_prereleases">Use pre-releases</string>
441-
<string name="patches_prereleases_description">Use pre-release version of %s</string>
441+
<string name="patches_prereleases_description">Use pre-release versions of %s</string>
442442
<string name="patches_url">Patches URL</string>
443443
<string name="incompatible_patches_dialog">These patches are not compatible with the selected app version (%1$s).\n\nClick on the patches to see more details.</string>
444444
<string name="incompatible_patch">Incompatible patch</string>

0 commit comments

Comments
 (0)