mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
fix: Use original packageName to get compatible patches
This commit is contained in:
parent
fd099fb632
commit
4631982d42
1 changed files with 5 additions and 1 deletions
|
@ -70,10 +70,14 @@ class PatcherAPI {
|
|||
}
|
||||
|
||||
Future<List<Patch>> getFilteredPatches(String packageName) async {
|
||||
String newPackageName = packageName.replaceFirst(
|
||||
'app.revanced.',
|
||||
'com.google.',
|
||||
);
|
||||
return _patches
|
||||
.where((patch) =>
|
||||
!patch.name.contains('settings') &&
|
||||
patch.compatiblePackages.any((pack) => pack.name == packageName))
|
||||
patch.compatiblePackages.any((pack) => pack.name == newPackageName))
|
||||
.toList();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue