mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-11 13:46:17 +00:00
feat: filter apps by patch count
This commit is contained in:
@@ -94,15 +94,14 @@ class PatcherAPI {
|
||||
return filteredApps;
|
||||
}
|
||||
|
||||
Future<List<Patch>> getFilteredPatches(String packageName) async {
|
||||
List<Patch> getFilteredPatches(String packageName) {
|
||||
List<Patch> filteredPatches = [];
|
||||
_patches.forEach((patch) {
|
||||
if (patch.compatiblePackages.isEmpty) {
|
||||
filteredPatches.add(patch);
|
||||
} else {
|
||||
if (!patch.name.contains('settings') &&
|
||||
patch.compatiblePackages.any((pack) => pack.name == packageName)
|
||||
) {
|
||||
patch.compatiblePackages.any((pack) => pack.name == packageName)) {
|
||||
filteredPatches.add(patch);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user