mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
fix: Use original packageName to get compatible patches
This commit is contained in:
parent
fd099fb632
commit
4631982d42
@ -70,10 +70,14 @@ class PatcherAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<List<Patch>> getFilteredPatches(String packageName) async {
|
Future<List<Patch>> getFilteredPatches(String packageName) async {
|
||||||
|
String newPackageName = packageName.replaceFirst(
|
||||||
|
'app.revanced.',
|
||||||
|
'com.google.',
|
||||||
|
);
|
||||||
return _patches
|
return _patches
|
||||||
.where((patch) =>
|
.where((patch) =>
|
||||||
!patch.name.contains('settings') &&
|
!patch.name.contains('settings') &&
|
||||||
patch.compatiblePackages.any((pack) => pack.name == packageName))
|
patch.compatiblePackages.any((pack) => pack.name == newPackageName))
|
||||||
.toList();
|
.toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user